Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
ai-astro
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liubinyu
ai-astro
Commits
85a1de15
Commit
85a1de15
authored
Jun 20, 2025
by
liubinyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
26edb3c7
Pipeline
#916
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
forecast.vue
src/views/forecast.vue
+12
-2
No files found.
src/views/forecast.vue
View file @
85a1de15
<
script
setup
>
import
{
inject
,
ref
}
from
'vue'
;
import
{
inject
,
ref
,
computed
}
from
'vue'
;
const
_const
=
inject
(
'_const'
)
import
*
as
api
from
'@/api'
import
{
dateFormat
}
from
'@/utils'
import
{
useI18n
}
from
'vue-i18n'
const
{
locale
}
=
useI18n
()
const
monthList
=
[
'January'
,
'February'
,
'March'
,
'April'
,
'May'
,
'June'
,
'July'
,
'August'
,
'September'
,
'October'
,
'November'
,
'December'
]
const
today
=
computed
(()
=>
{
const
date
=
new
Date
()
if
(
locale
.
value
===
'En'
)
{
return
` (
${
monthList
[
date
.
getMonth
()]}
${
date
.
getDate
()}
${
date
.
getFullYear
()}
)`
}
else
{
return
`(
${
dateFormat
(
date
,
'YYYY年M月D日'
)}
)`
}
})
const
active
=
ref
()
const
loading
=
ref
(
false
)
async
function
getInfo
()
{
...
...
@@ -42,7 +52,7 @@ function getWordList(word) {
<
template
>
<div
class=
"page"
>
<div
class=
"title1"
>
{{
$t
(
'Daily'
)
}}{{
$t
(
'Horoscope'
)
}}
</div>
<div
class=
"title1"
>
{{
$t
(
'Daily'
)
}}{{
$t
(
'Horoscope'
)
}}
{{
today
}}
</div>
<div
class=
"title2"
>
{{
$t
(
'Come and check out'
)
}}
</div>
<div
class=
"constellation-list"
>
<div
v-for=
"item in _const.ConstellationList"
class=
"constellation"
:class=
"
{ active: active.key === item.key }"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment