Compare commits

..

2 Commits

Author SHA1 Message Date
ihzero b17fe89b16 info 2024-05-01 15:54:50 +08:00
ihzero 8743495495 请求头 2024-05-01 15:48:06 +08:00
4 changed files with 6 additions and 4 deletions

3
global/info.txt 100644
View File

@ -0,0 +1,3 @@
别名store_manage
密码123456a
包名com.lottery.store

Binary file not shown.

Binary file not shown.

View File

@ -4,14 +4,13 @@ import { useUserStoreWithOut } from '@/store/modules/user';
const { apiUrl } = useGlobSetting();
const systemInfo = uni.getSystemInfoSync();
const http = new Request();
http.setConfig((config) => {
config.baseURL = apiUrl;
config.timeout = 10000;
config.header = Object.assign({
Accept: 'application/json',
// 'app-cli-os': android/ios,
// 'app-cli-version': 100
'app-cli-os': systemInfo.platform,
'app-cli-version': systemInfo.appVersionCode
}, config.header);
/* 设置全局配置 */
config.validateStatus = (statusCode) => {