fix: 获取菜单时增加 trxToken 参数

develop
时启龙 2024-08-26 10:46:22 +08:00
parent a130aab32e
commit b0c157f769
2 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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) {