From 1c8473a5dac1ad19fa4ddb69b6c2c1da7ba5bd18 Mon Sep 17 00:00:00 2001 From: 若依 <yzz_ivy@163.com> Date: 星期四, 16 六月 2022 11:35:33 +0800 Subject: [PATCH] Merge pull request #54 from biubiaYang/patch-1 --- src/utils/request.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index e82383a..79c720c 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -1,11 +1,11 @@ import axios from 'axios' import { ElNotification , ElMessageBox, ElMessage, ElLoading } from 'element-plus' -import store from '@/store' import { getToken } from '@/utils/auth' import errorCode from '@/utils/errorCode' import { tansParams, blobValidate } from '@/utils/ruoyi' import cache from '@/plugins/cache' import { saveAs } from 'file-saver' +import useUserStore from '@/store/modules/user' let downloadLoadingInstance; // 鏄惁鏄剧ず閲嶆柊鐧诲綍 @@ -85,7 +85,7 @@ } ).then(() => { isRelogin.show = false; - store.dispatch('LogOut').then(() => { + useUserStore().logOut().then(() => { location.href = '/index'; }) }).catch(() => { -- Gitblit v1.9.3