From b0c157f7690e8ffd793a1424aec51c7937997051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Mon, 26 Aug 2024 10:46:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8E=B7=E5=8F=96=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=97=B6=E5=A2=9E=E5=8A=A0=20trxToken=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/index.js | 4 ++-- src/store/modules/permission.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) {