This commit is contained in:
2025-08-11 11:41:22 +08:00
parent 3dc28bf225
commit e576fb8c4c
16 changed files with 802 additions and 11 deletions
+2 -1
View File
@@ -15,13 +15,14 @@ import { decryptData, encryptData } from './encrypt';
import { DATA_TYPE_ENUM } from '../constants/common-const';
import _ from 'lodash';
import LocalStorageKeyConst from '/@/constants/local-storage-key-const.js';
import { getCurrentApiUrl } from '/@/utils/env-util';
// token的消息头
const TOKEN_HEADER = 'Authorization';
// 创建axios对象
const smartAxios = axios.create({
baseURL: import.meta.env.VITE_APP_API_URL,
baseURL: getCurrentApiUrl(),
});
// 退出系统