Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-group-course
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄志
ydl-group-course
Commits
ebedcd0d
Commit
ebedcd0d
authored
Mar 27, 2023
by
huangzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 登出
parent
a3b45a58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
my.vue
src/pages/my/my.vue
+8
-0
No files found.
src/pages/my/my.vue
View file @
ebedcd0d
...
@@ -209,11 +209,19 @@ export default {
...
@@ -209,11 +209,19 @@ export default {
// 退出登录
// 退出登录
handleLogoutConfirm
()
{
handleLogoutConfirm
()
{
this
.
logoutVisible
=
false
this
.
logoutVisible
=
false
this
.
handleLogout
()
this
.
$store
.
commit
(
'user/setUserInfo'
,
{})
this
.
$store
.
commit
(
'user/setUserInfo'
,
{})
this
.
$store
.
commit
(
'user/setCode'
,
''
)
this
.
$store
.
commit
(
'user/setCode'
,
''
)
this
.
$store
.
commit
(
'user/setUid'
,
''
)
this
.
$store
.
commit
(
'user/setUid'
,
''
)
this
.
$store
.
commit
(
'user/setAccessToken'
,
''
)
this
.
$store
.
commit
(
'user/setAccessToken'
,
''
)
},
},
// 退出登录
handleLogout
()
{
const
url
=
`
${
hostPrefix
}
/h5-course/wxLogout`
uni
.
navigateTo
({
url
:
`/pages/web/web?title=退出登录&loadUrl=
${
encodeURIComponent
(
url
)}
`
,
})
},
// 跳转订单
// 跳转订单
navigateToOrder
()
{
navigateToOrder
()
{
// const aa =
// const aa =
...
...
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