fix: 获取菜单时增加 trxToken 参数
parent
a130aab32e
commit
b0c157f769
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue