This commit is contained in:
孟帅
2023-07-20 18:01:10 +08:00
parent 9113fc5297
commit 373d9627fb
492 changed files with 12170 additions and 6982 deletions

View File

@@ -103,7 +103,7 @@ const transform: AxiosTransform = {
case ResultEnum.TIMEOUT:
const LoginName = PageEnum.BASE_LOGIN_NAME;
const LoginPath = PageEnum.BASE_LOGIN;
if (router.currentRoute.value?.name === LoginName) return;
if (router.currentRoute.value.name === LoginName) return;
// 到登录页
errorMsg = message ?? '登录超时,请重新登录!';
$dialog.warning({
@@ -284,14 +284,7 @@ export const http = createAxios();
// 导出
export const jumpExport = function (url, params) {
window.location.href =
urlPrefix +
url +
'?' +
encodeParams({
...delNullProperty(params),
...{ authorization: useUserStoreWidthOut().token },
});
jump(url, params);
};
// 跳转