Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-boss
Project
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
姜雷
wx-boss
Commits
f6780eff
Commit
f6780eff
authored
Dec 31, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登出后跳转逻辑
parent
b767d38b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
index.js
miniprogram/pages/index/index.js
+0
-0
index.ts
miniprogram/pages/index/index.ts
+4
-1
report.js
miniprogram/pages/report/report.js
+3
-3
report.ts
miniprogram/pages/report/report.ts
+1
-1
No files found.
miniprogram/pages/index/index.js
View file @
f6780eff
This diff is collapsed.
Click to expand it.
miniprogram/pages/index/index.ts
View file @
f6780eff
...
...
@@ -6,9 +6,12 @@ import { IMyApp } from '../../app';
const
app
=
getApp
<
IMyApp
>
();
Page
({
onLoad
()
{
onLoad
(
option
)
{
console
.
log
(
option
);
if
(
app
.
globalData
.
token
)
{
this
.
tokenLoagin
();
}
else
if
(
option
.
logout
)
{
// this.codeLogin();
}
else
{
this
.
codeLogin
();
}
...
...
miniprogram/pages/report/report.js
View file @
f6780eff
This diff is collapsed.
Click to expand it.
miniprogram/pages/report/report.ts
View file @
f6780eff
...
...
@@ -52,7 +52,7 @@ Component({
{
name
:
'退出登录'
,
icon
:
'../../../images/btn_Sign_out@2x.png'
,
url
:
'/pages/index/index'
,
url
:
'/pages/index/index
?logout=true
'
,
reLaunch
:
true
,
},
{},
...
...
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