Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
develop-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1b4ee10d
authored
Dec 14, 2020
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
create
1 parent
82a366bc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/main.js
src/store/modules/d2admin/modules/account.js
src/main.js
View file @
1b4ee10
...
@@ -30,7 +30,7 @@ Vue.prototype.notice = notice
...
@@ -30,7 +30,7 @@ Vue.prototype.notice = notice
var
baseConfig
=
''
var
baseConfig
=
''
axios
({
axios
({
// baseURL: process.env.VUE_APP_REPO + '/dj-car-life-system-config-test',
// baseURL: process.env.VUE_APP_REPO + '/dj-car-life-system-config-test',
baseURL
:
process
.
env
.
VUE_APP_REPO
+
'/d
j-car-life-syste
m-config'
,
baseURL
:
process
.
env
.
VUE_APP_REPO
+
'/d
evelop-platfor
m-config'
,
method
:
'get'
method
:
'get'
}).
then
(({
}).
then
(({
data
data
...
...
src/store/modules/d2admin/modules/account.js
View file @
1b4ee10
...
@@ -34,7 +34,7 @@ export default {
...
@@ -34,7 +34,7 @@ export default {
// token 代表用户当前登录状态 建议在网络请求中携带 token
// token 代表用户当前登录状态 建议在网络请求中携带 token
// 如有必要 token 需要定时更新,默认保存一天
// 如有必要 token 需要定时更新,默认保存一天
util
.
cookies
.
set
(
'uuid'
,
data
.
loginName
)
util
.
cookies
.
set
(
'uuid'
,
data
.
loginName
)
//
data.roleType = baseConfig.hasAuth ? data.roleType : SUPPER_ADMIN
data
.
roleType
=
baseConfig
.
hasAuth
?
data
.
roleType
:
SUPPER_ADMIN
const
authes
=
(
+
data
.
roleType
===
SUPPER_ADMIN
)
const
authes
=
(
+
data
.
roleType
===
SUPPER_ADMIN
)
?
util
.
permision
.
flatten
(
Object
.
values
(
localRoutes
))
?
util
.
permision
.
flatten
(
Object
.
values
(
localRoutes
))
.
map
(
obj
=>
({
authId
:
obj
.
authId
,
parentId
:
obj
.
parentId
}))
.
map
(
obj
=>
({
authId
:
obj
.
authId
,
parentId
:
obj
.
parentId
}))
...
...
Write
Preview
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