Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
ztx_wx_gzt
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
6f413499
authored
2023-10-31 10:49:14 +0800
by
华明祺
1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
logout
1 parent
32172fb1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
common/login.js
config.js
pages/index/index.vue
common/login.js
View file @
6f41349
...
...
@@ -34,9 +34,15 @@ function h5LoginAuto() {
}
}
function
logout
()
{
return
request
({
url
:
'/logout'
,
method
:
'post'
}).
then
(()
=>
{
uni
.
removeStorageSync
(
'token'
)
uni
.
removeStorageSync
(
'userName'
)
})
}
function
getCodeImg
()
{
return
request
({
...
...
@@ -126,5 +132,6 @@ export {
h5LoginAuto
,
loginByPhone
,
groupMemberRegister
,
getMyOwnMemberInfo
getMyOwnMemberInfo
,
logout
}
...
...
config.js
View file @
6f41349
...
...
@@ -5,6 +5,7 @@
// staging
// const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/";
const
baseUrl_api
=
"http://182.92.233.247/stage-api/"
;
// const baseUrl_api = 'http://192.168.1.97:8787'
export
default
{
baseUrl_api
...
...
pages/index/index.vue
View file @
6f41349
...
...
@@ -177,15 +177,15 @@
content
:
`确认退出吗?`
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
loginServer
.
logout
().
then
(()
=>
{
let
path
=
'/pages/index/login'
;
uni
.
reLaunch
({
url
:
path
});
})
}
}
})
}
function
goPath
(
path
)
{
...
...
杨炀
@yangyang
mentioned in commit
65316219
2023-11-02 01:43:59 UTC
mentioned in commit
65316219
Toggle commit list
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