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
dbb509cf
Commit
dbb509cf
authored
Dec 31, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改权限层级
parent
836c791f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
index.js
miniprogram/pages/index/index.js
+0
-0
index.ts
miniprogram/pages/index/index.ts
+9
-3
No files found.
miniprogram/pages/index/index.js
View file @
dbb509cf
This diff is collapsed.
Click to expand it.
miniprogram/pages/index/index.ts
View file @
dbb509cf
...
...
@@ -82,7 +82,9 @@ Page({
}
=
res
;
app
.
globalData
.
token
=
token
;
app
.
globalData
.
userInfo
=
userInfo
;
app
.
globalData
.
userRoles
=
userRoles
;
app
.
globalData
.
userRoles
=
userRoles
.
length
?
userRoles
[
0
].
childs
:
[];
wx
.
hideLoading
();
wx
.
redirectTo
({
url
:
'/pages/homeAndReport/homeAndReport'
,
...
...
@@ -162,7 +164,9 @@ Page({
}
=
res
;
app
.
globalData
.
token
=
token
;
app
.
globalData
.
userInfo
=
userInfo
;
app
.
globalData
.
userRoles
=
userRoles
;
app
.
globalData
.
userRoles
=
userRoles
.
length
?
userRoles
[
0
].
childs
:
[];
try
{
wx
.
setStorageSync
(
'token'
,
token
);
}
catch
(
error
)
{}
...
...
@@ -215,7 +219,9 @@ Page({
}
=
res
;
app
.
globalData
.
token
=
token
;
app
.
globalData
.
userInfo
=
userInfo
;
app
.
globalData
.
userRoles
=
userRoles
;
app
.
globalData
.
userRoles
=
userRoles
.
length
?
userRoles
[
0
].
childs
:
[];
try
{
wx
.
setStorageSync
(
'token'
,
token
);
}
catch
(
error
)
{}
...
...
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