Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
636fba4e
authored
2025-01-24 15:57:05 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
7ff732f6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
src/api/modules/queryService.ts
src/layouts/components/Header/index.vue
src/layouts/components/Tools/index.vue
src/api/modules/queryService.ts
View file @
636fba4
...
...
@@ -13,7 +13,7 @@ export const getTokenByCode = (params) => {
export
const
loginOut
=
()
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_USER_API_BASEURL
}
/user/logout`
,
method
:
'
ge
t'
method
:
'
pos
t'
})
}
...
...
src/layouts/components/Header/index.vue
View file @
636fba4
...
...
@@ -65,9 +65,9 @@ const handleShowMessage = () => {
<div
v-if=
"item.children && item.children.length !== 0"
class=
"item-container"
:class=
"
{ active: index === menuStore.actived }">
<div
class=
"item"
@
click=
"switchTo(index)"
v-preReClick
>
<el-icon
v-if=
"item.meta?.icon"
>
<
!--
<
el-icon
v-if=
"item.meta?.icon"
>
<svg-icon
:name=
"item.meta.icon"
/>
</el-icon>
</el-icon>
-->
<span
v-if=
"item.meta?.title"
>
{{
item
.
meta
.
title
}}
</span>
</div>
</div>
...
...
@@ -149,8 +149,8 @@ header {
background-color
:
inherit
;
.logo
{
width
:
1
79
px
;
height
:
4
8
px
;
width
:
1
68
px
;
height
:
4
5
px
;
}
span
{
...
...
src/layouts/components/Tools/index.vue
View file @
636fba4
...
...
@@ -36,6 +36,7 @@ function userCommand(command: 'home' | 'setting' | 'updatePwd' | 'hotkeys' | 'lo
function
pro
()
{
window
.
open
(
'https://hooray.gitee.io/fantastic-admin-pro-example/'
,
'_blank'
)
}
const
loaclStorageInfo
:
any
=
localStorage
.
getItem
(
"userData"
)
onMounted
(()
=>
{
console
.
log
(
'mounted'
,
JSON
.
parse
(
userStore
.
userData
).
abbreviation
)
})
...
...
@@ -58,7 +59,7 @@ onMounted(() => {
</el-avatar>
<div
class=
"v-uerinfo"
>
<div
class=
"v-top"
>
{{
userStore
.
userName
}}
</div>
<div
class=
"v-top"
>
{{
JSON
.
parse
(
userStore
.
userData
).
abbreviation
}}
</div>
<div
class=
"v-top"
>
{{
JSON
.
parse
(
loaclStorageInfo
).
abbreviation
}}
</div>
</div>
<div>
<el-icon>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment