This commit is contained in:
孟帅
2023-05-10 23:54:50 +08:00
parent bbe655a4d8
commit 49a96750bf
314 changed files with 15138 additions and 6244 deletions

View File

@@ -19,6 +19,7 @@ import { useUserStoreWidthOut } from '@/store/modules/user';
import router from '@/router';
import { storage } from '@/utils/Storage';
import { encodeParams } from '@/utils/urlUtils';
import { delNullProperty } from '@/utils/array';
const globSetting = useGlobSetting();
const urlPrefix = globSetting.urlPrefix || '';
@@ -287,7 +288,22 @@ export const jumpExport = function (url, params) {
urlPrefix +
url +
'?' +
encodeParams({ ...params, ...{ authorization: useUserStoreWidthOut().token } });
encodeParams({
...delNullProperty(params),
...{ authorization: useUserStoreWidthOut().token },
});
};
// 跳转
export const jump = function (url, params) {
window.location.href =
urlPrefix +
url +
'?' +
encodeParams({
...delNullProperty(params),
...{ authorization: useUserStoreWidthOut().token },
});
};
// 项目,多个不同 api 地址,直接在这里导出多个