fix: 获取菜单时增加 trxToken 参数
parent
a130aab32e
commit
b0c157f769
|
@ -55,8 +55,8 @@ export function replaceToken(params) {
|
||||||
return request.get('/sms/v1/token', { params })
|
return request.get('/sms/v1/token', { params })
|
||||||
}
|
}
|
||||||
// 获取用户权限
|
// 获取用户权限
|
||||||
export function getUserPermissions() {
|
export function getUserPermissions(params) {
|
||||||
return request.get('/sms/v1/users/permissions')
|
return request.get('/sms/v1/users/permissions', { params })
|
||||||
}
|
}
|
||||||
// 获取系统配置信息
|
// 获取系统配置信息
|
||||||
export function getSystemConfigs(params) {
|
export function getSystemConfigs(params) {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Created by HaijunZhang on 2018/11/12.
|
* Created by HaijunZhang on 2018/11/12.
|
||||||
*/
|
*/
|
||||||
import { resolvePath } from 'utils/resolvePath'
|
import { resolvePath } from 'utils/resolvePath'
|
||||||
import { removeToken, removeTrxToken } from 'utils/auth'
|
import { removeToken, removeTrxToken, getTrxToken } from 'utils/auth'
|
||||||
import { getUserPermissions } from 'services'
|
import { getUserPermissions } from 'services'
|
||||||
import BlankView from '@/layouts/blank.vue'
|
import BlankView from '@/layouts/blank.vue'
|
||||||
import router, { resetRouter } from '@/router'
|
import router, { resetRouter } from '@/router'
|
||||||
|
@ -105,7 +105,7 @@ const actions = {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getUserPermissions()
|
getUserPermissions({ trxToken: getTrxToken() })
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
if (enablePermissionStorage) {
|
if (enablePermissionStorage) {
|
||||||
|
|
Loading…
Reference in New Issue