This commit is contained in:
2025-12-25 08:26:09 +08:00
parent ab5c01bf5c
commit 964e4f9c33
72 changed files with 2474 additions and 1065 deletions

View File

@@ -1,8 +1,8 @@
// 全局配置文件
// let baseUrl = 'http://192.168.0.108:8088';
// let staticUrl = 'http://192.168.0.108:8088';
let baseUrl = 'https://sourcebyte.vip';
let staticUrl = 'https://sourcebyte.vip';
// let baseUrl = 'https://sourcebyte.vip';
// let staticUrl = 'https://sourcebyte.vip';
let baseUrl = 'http://localhost:8089';
let staticUrl = 'http://localhost:8089';
// 版本号 用于更新
let version = 1;
// vuex_version版本号 用于显示

View File

@@ -12,8 +12,11 @@ const install = (Vue, vm) => {
// config.header.Token = '5d33018e653d897fc259b42cf022c1b3';
// 方式一存放在vuex的token假设使用了uView封装的vuex方式https://uviewui.com/components/globalVariable.html
// 自定义token头
// config.header.Authorization = vm.vuex_token;
return config;
config.header = {
...config.header, // ⭐ 保留你外部传入的 header
'content-type': 'application/json'
}
return config;
};
// 响应拦截,判断状态码是否通过
Vue.prototype.$u.http.interceptor.response = (res) => {