1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2026-01-22 23:50:22 +08:00

fix: 优化接口异常弹窗及消息提醒方式

This commit is contained in:
zclzone
2024-07-05 17:41:58 +08:00
parent c5d93628f0
commit 8cb3d2cf19
4 changed files with 13 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ export default {
// 刷新token
refreshToken: () => request.get('/auth/refresh/token'),
// 登出
logout: () => request.post('/auth/logout'),
logout: () => request.post('/auth/logout', {}, { needTip: false }),
// 切换当前角色
switchCurrentRole: role => request.post(`/auth/current-role/switch/${role}`),
// 获取角色权限