Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ae9723bc
authored
May 13, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:首页不 keep-alive 的问题
parent
5b5ffb84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
src/views/Home/Index.vue
+11
-6
No files found.
src/views/Home/Index.vue
View file @
ae9723bc
...
@@ -83,13 +83,18 @@
...
@@ -83,13 +83,18 @@
:sm=
"24"
:sm=
"24"
:xs=
"24"
:xs=
"24"
>
>
<el-card
<el-card
shadow=
"hover"
shadow=
"hover"
class=
"mr-5px mt-5px cursor-pointer"
class=
"mr-5px mt-5px cursor-pointer"
@
click=
"handleProjectClick(item.message)"
@
click=
"handleProjectClick(item.message)"
>
>
<div
class=
"flex items-center"
>
<div
class=
"flex items-center"
>
<Icon
:icon=
"item.icon"
:size=
"25"
class=
"mr-8px"
:style=
"{ color: item.color }"
/>
<Icon
:icon=
"item.icon"
:size=
"25"
class=
"mr-8px"
:style=
"{ color: item.color }"
/>
<span
class=
"text-16px"
>
{{ item.name }}
</span>
<span
class=
"text-16px"
>
{{ item.name }}
</span>
</div>
</div>
<div
class=
"mt-12px text-12px text-gray-400"
>
{{ t(item.message) }}
</div>
<div
class=
"mt-12px text-12px text-gray-400"
>
{{ t(item.message) }}
</div>
...
@@ -181,17 +186,17 @@ import { EChartsOption } from 'echarts'
...
@@ -181,17 +186,17 @@ import { EChartsOption } from 'echarts'
import
{
formatTime
}
from
'@/utils'
import
{
formatTime
}
from
'@/utils'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
useWatermark
}
from
'@/hooks/web/useWatermark'
//
import { useWatermark } from '@/hooks/web/useWatermark'
import
type
{
WorkplaceTotal
,
Project
,
Notice
,
Shortcut
}
from
'./types'
import
type
{
WorkplaceTotal
,
Project
,
Notice
,
Shortcut
}
from
'./types'
import
{
pieOptions
,
barOptions
}
from
'./echarts-data'
import
{
pieOptions
,
barOptions
}
from
'./echarts-data'
import
{
useRouter
}
from
'vue-router'
import
{
useRouter
}
from
'vue-router'
defineOptions
({
name
:
'
Home
'
})
defineOptions
({
name
:
'
Index
'
})
const
{
t
}
=
useI18n
()
const
{
t
}
=
useI18n
()
const
router
=
useRouter
()
const
router
=
useRouter
()
const
userStore
=
useUserStore
()
const
userStore
=
useUserStore
()
const
{
setWatermark
}
=
useWatermark
()
//
const { setWatermark } = useWatermark()
const
loading
=
ref
(
true
)
const
loading
=
ref
(
true
)
const
avatar
=
userStore
.
getUser
.
avatar
const
avatar
=
userStore
.
getUser
.
avatar
const
username
=
userStore
.
getUser
.
nickname
const
username
=
userStore
.
getUser
.
nickname
...
...
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