Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
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
front-end-dev
techbook
Commits
40879e21
Commit
40879e21
authored
Sep 25, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交退出登录
parent
c8a4866e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
public.js
src/assets/js/public.js
+1
-2
mine.vue
src/views/mobile/mine.vue
+2
-1
No files found.
src/assets/js/public.js
View file @
40879e21
...
...
@@ -196,9 +196,8 @@ export default {
if
(
keys
)
{
for
(
var
i
=
keys
.
length
;
i
--
;)
{
if
(
keys
[
i
]
==
userValue
){
alert
(
11111
)
}
else
{
alert
(
22222
)
document
.
cookie
=
keys
[
i
]
+
'=0;path=/;expires='
+
new
Date
(
0
).
toUTCString
()
// 清除当前域名下的,例如:m.ratingdog.cn
document
.
cookie
=
keys
[
i
]
+
'=0;path=/;domain='
+
document
.
domain
+
';expires='
+
new
Date
(
0
).
toUTCString
()
// 清除当前域名下的,例如 .m.ratingdog.cn
document
.
cookie
=
keys
[
i
]
+
'=0;path=/;domain=ratingdog.cn;expires='
+
new
Date
(
0
).
toUTCString
()
// 清除一级域名下的或指定的,例如 .ratingdog.cn
...
...
src/views/mobile/mine.vue
View file @
40879e21
...
...
@@ -457,7 +457,8 @@
if
(
res
.
code
==
0
)
{
window
.
localStorage
.
clear
();
window
.
sessionStorage
.
clear
();
this
.
publicFun
.
delCookie
();
// this.publicFun.delCookie();
this
.
publicFun
.
removeCookie
(
"selected"
);
this
.
publicFun
.
removeCookieType
();
that
.
$router
.
push
(
"/loginByPhone"
);
}
else
{
...
...
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