diff --git a/src/services/index.js b/src/services/index.js index 3c342ba..c1e5e42 100644 --- a/src/services/index.js +++ b/src/services/index.js @@ -55,8 +55,8 @@ export function replaceToken(params) { return request.get('/sms/v1/token', { params }) } // 获取用户权限 -export function getUserPermissions() { - return request.get('/sms/v1/users/permissions') +export function getUserPermissions(params) { + return request.get('/sms/v1/users/permissions', { params }) } // 获取系统配置信息 export function getSystemConfigs(params) { diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index c1f89f8..4432e70 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -2,7 +2,7 @@ * Created by HaijunZhang on 2018/11/12. */ import { resolvePath } from 'utils/resolvePath' -import { removeToken, removeTrxToken } from 'utils/auth' +import { removeToken, removeTrxToken, getTrxToken } from 'utils/auth' import { getUserPermissions } from 'services' import BlankView from '@/layouts/blank.vue' import router, { resetRouter } from '@/router' @@ -105,7 +105,7 @@ const actions = { return } } - getUserPermissions() + getUserPermissions({ trxToken: getTrxToken() }) .then(data => { if (data.success) { if (enablePermissionStorage) {