Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
live-management-web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
live-management-web
Commits
02059dff
Commit
02059dff
authored
Sep 01, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重复请求user_info的问题
parent
1b6b2a08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
src/layouts/components/LoginDropdown.vue
+1
-7
No files found.
src/layouts/components/LoginDropdown.vue
View file @
02059dff
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
Popup
as
TPopup
}
from
'tdesign-vue-next'
;
import
{
Popup
as
TPopup
}
from
'tdesign-vue-next'
;
import
{
computed
,
onMounted
,
ref
}
from
'vue'
;
import
{
computed
,
ref
}
from
'vue'
;
import
{
useStore
}
from
'vuex'
;
import
{
useStore
}
from
'vuex'
;
const
Imgs
=
{
const
Imgs
=
{
logout
:
new
URL
(
'../../assets/svg/user/userdropdown/logout.svg'
,
import
.
meta
.
url
).
href
,
logout
:
new
URL
(
'../../assets/svg/user/userdropdown/logout.svg'
,
import
.
meta
.
url
).
href
,
...
@@ -51,12 +51,6 @@ const getDomId = () => {
...
@@ -51,12 +51,6 @@ const getDomId = () => {
return
headerUserInfo
.
value
;
return
headerUserInfo
.
value
;
};
};
onMounted
(()
=>
{
if
(
!
Object
.
keys
(
userInfo
.
value
).
length
)
{
store
.
dispatch
(
'user/getUserInfo'
);
}
});
// 退出
// 退出
const
logout
=
()
=>
{
const
logout
=
()
=>
{
store
.
dispatch
(
'user/logout'
);
store
.
dispatch
(
'user/logout'
);
...
...
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