Commit 1b4ee10d by cwq0219

create

1 parent 82a366bc
......@@ -30,7 +30,7 @@ Vue.prototype.notice = notice
var baseConfig = ''
axios({
// baseURL: process.env.VUE_APP_REPO + '/dj-car-life-system-config-test',
baseURL: process.env.VUE_APP_REPO + '/dj-car-life-system-config',
baseURL: process.env.VUE_APP_REPO + '/develop-platform-config',
method: 'get'
}).then(({
data
......
......@@ -34,7 +34,7 @@ export default {
// token 代表用户当前登录状态 建议在网络请求中携带 token
// 如有必要 token 需要定时更新,默认保存一天
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)
? util.permision.flatten(Object.values(localRoutes))
.map(obj => ({ authId: obj.authId, parentId: obj.parentId }))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!