chore(request): 相对路径替换绝对路径

This commit is contained in:
ywk 2025-04-09 16:45:58 +08:00
parent 4ecc3ed932
commit 076038ea73
3 changed files with 55 additions and 49 deletions

View File

@ -13,12 +13,12 @@ module.exports = (vm) => {
//#ifdef DEV_SERVER //#ifdef DEV_SERVER
console.log('DEV_SERVER') console.log('DEV_SERVER')
config.baseURL = 'http://t-app.beida413.com/prod-api'; config.baseURL = '/prod-api';
//#endif //#endif
//#ifdef QA_SERVER //#ifdef QA_SERVER
console.log('QA_SERVER') console.log('QA_SERVER')
config.baseURL = 'http://t-app.beida413.com/prod-api'; config.baseURL = '/prod-api';
//#endif //#endif
config.timeout = 30000; config.timeout = 30000;
return config return config

View File

@ -1,28 +1,28 @@
{ {
"name" : "qyj_console", "name": "qyj_console",
"appid" : "__UNI__31B4587", "appid": "__UNI__31B4587",
"description" : "", "description": "",
"versionName" : "1.0.0", "versionName": "1.0.0",
"versionCode" : "100", "versionCode": "100",
"transformPx" : false, "transformPx": false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus": {
"usingComponents" : true, "usingComponents": true,
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler": "uni-app",
"compilerVersion" : 3, "compilerVersion": 3,
"splashscreen" : { "splashscreen": {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender": true,
"waiting" : true, "waiting": true,
"autoclose" : true, "autoclose": true,
"delay" : 0 "delay": 0
}, },
/* */ /* */
"modules" : {}, "modules": {},
/* */ /* */
"distribute" : { "distribute": {
/* android */ /* android */
"android" : { "android": {
"permissions" : [ "permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
@ -41,44 +41,50 @@
] ]
}, },
/* ios */ /* ios */
"ios" : {}, "ios": {},
/* SDK */ /* SDK */
"sdkConfigs" : {} "sdkConfigs": {}
} }
}, },
/* */ /* */
"quickapp" : {}, "quickapp": {},
/* */ /* */
"mp-weixin" : { "mp-weixin": {
"appid" : "wxe26d23c09932e93b", "appid": "wxe26d23c09932e93b",
"setting" : { "setting": {
"urlCheck" : false, "urlCheck": false,
"es6" : false, "es6": false,
"minified" : false "minified": false
}, },
"usingComponents" : true "usingComponents": true
}, },
"mp-alipay" : { "mp-alipay": {
"usingComponents" : true "usingComponents": true
}, },
"mp-baidu" : { "mp-baidu": {
"usingComponents" : true "usingComponents": true
}, },
"mp-toutiao" : { "mp-toutiao": {
"usingComponents" : true "usingComponents": true
}, },
"uniStatistics" : { "uniStatistics": {
"enable" : false "enable": false
}, },
"vueVersion" : "2", "vueVersion": "2",
"h5" : { "h5": {
"template" : "index.html", "template": "index.html",
"router" : { "router": {
"mode" : "hash" "mode": "hash"
}, },
"devServer" : { "devServer": {
"https" : false "https": false,
"proxy": {
"/prod-api": {
"target": "http://t-app.beida413.com",
"changeOrigin": true
}
}
} }
}, },
"fallbackLocale" : "zh-Hans" "fallbackLocale": "zh-Hans"
} }

View File

@ -15,5 +15,5 @@ module.exports = {
// 'ruRU':'ruRU', // 'ruRU':'ruRU',
// 'frFR':'frFR', // 'frFR':'frFR',
}, },
} },
} }