fix
This commit is contained in:
parent
2a7e7bf957
commit
3d03a580fc
@ -1,3 +1,3 @@
|
||||
export default {
|
||||
baseUrl: "https://stock.szjixun.cn", //"https://warehouse.szjixun.cn", // https://stock.szjixun.cn
|
||||
baseUrl: "https://warehouse.szjixun.cn", //"https://warehouse.szjixun.cn", // https://stock.szjixun.cn
|
||||
};
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
export default {
|
||||
config: {
|
||||
baseUrl: "https://stock.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//测试 'https://warehouse.szjixun.cn' 正式 https://stock.szjixun.cn
|
||||
baseUrl: "https://warehouse.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//测试 'https://warehouse.szjixun.cn' 正式 https://stock.szjixun.cn
|
||||
header: {
|
||||
"Content-Type": "application/json;charset=UTF-8",
|
||||
// 'Content-Type':'application/x-www-form-urlencoded'
|
||||
@ -61,22 +61,20 @@ export default {
|
||||
}
|
||||
}
|
||||
if (response.data?.status === 401) {
|
||||
uni.showModal({
|
||||
title:'登录后使用完整功能',
|
||||
success:(res)=>{
|
||||
if (res.confirm){
|
||||
let curPage = getCurrentPages();
|
||||
let route = curPage[curPage.length - 1].route; //获取当前页面的路由
|
||||
if (route !== "pages/login/login") {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login",
|
||||
});
|
||||
}
|
||||
uni.showModal({
|
||||
title: "登录后使用完整功能",
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
let curPage = getCurrentPages();
|
||||
let route = curPage[curPage.length - 1].route; //获取当前页面的路由
|
||||
if (route !== "pages/login/login") {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login",
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
// 统一的响应日志记录
|
||||
_reslog(response);
|
||||
|
File diff suppressed because one or more lines are too long
10
unpackage/dist/dev/mp-weixin/app.json
vendored
10
unpackage/dist/dev/mp-weixin/app.json
vendored
@ -49,15 +49,7 @@
|
||||
}
|
||||
},
|
||||
"subpackages": [
|
||||
{
|
||||
"root": "pagesFace",
|
||||
"name": "pagesFace",
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/webview/webview",
|
||||
"pages/middle/middle"
|
||||
]
|
||||
}
|
||||
|
||||
],
|
||||
"usingComponents": {}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
55
unpackage/dist/dev/mp-weixin/project.config.json
vendored
55
unpackage/dist/dev/mp-weixin/project.config.json
vendored
@ -1,36 +1,29 @@
|
||||
{
|
||||
"description": "项目配置文件。",
|
||||
"packOptions": {
|
||||
"ignore": []
|
||||
},
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"es6": false,
|
||||
"postcss": false,
|
||||
"minified": false,
|
||||
"newFeature": true,
|
||||
"bigPackageSizeSupport": true
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "",
|
||||
"appid": "wx2ab0adfa3346d44f",
|
||||
"projectname": "uni-Identify-quality",
|
||||
"condition": {
|
||||
"search": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
"description": "项目配置文件。",
|
||||
"packOptions": {
|
||||
"ignore": [],
|
||||
"include": []
|
||||
},
|
||||
"conversation": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"es6": false,
|
||||
"postcss": false,
|
||||
"minified": false,
|
||||
"newFeature": true,
|
||||
"bigPackageSizeSupport": true,
|
||||
"babelSetting": {
|
||||
"ignore": [],
|
||||
"disablePlugins": [],
|
||||
"outputPath": ""
|
||||
}
|
||||
},
|
||||
"game": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
},
|
||||
"miniprogram": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "3.1.0",
|
||||
"appid": "wx2ab0adfa3346d44f",
|
||||
"projectname": "uni-Identify-quality",
|
||||
"condition": {},
|
||||
"editorSetting": {
|
||||
"tabIndent": "insertSpaces",
|
||||
"tabSize": 4
|
||||
}
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon",
|
||||
"u-icon": "/uview-ui/components/u-icon/u-icon"
|
||||
}
|
||||
},
|
||||
"component": true
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-line": "/uview-ui/components/u-line/u-line"
|
||||
}
|
||||
},
|
||||
"component": true
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "/uview-ui/components/u-icon/u-icon",
|
||||
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon"
|
||||
}
|
||||
},
|
||||
"component": true
|
||||
}
|
Loading…
Reference in New Issue
Block a user