重庆打包配置
This commit is contained in:
parent
579ad71cac
commit
ddb64815d9
10
apis/http.js
10
apis/http.js
|
|
@ -25,22 +25,22 @@ class HttpConfig {
|
||||||
// systemPath = `${this.baseUrl}/dev-api/system`
|
// systemPath = `${this.baseUrl}/dev-api/system`
|
||||||
// basePath = `${this.baseUrl}/dev-api/base`
|
// basePath = `${this.baseUrl}/dev-api/base`
|
||||||
// materialPath = `${this.baseUrl}/dev-api/material`
|
// materialPath = `${this.baseUrl}/dev-api/material`
|
||||||
baseUrl = ENV === "production" ? "http://192.168.0.119:21624" : this.target;
|
baseUrl = ENV === "production" ? "http://192.168.0.56:21627" : this.target;
|
||||||
authPath =
|
authPath =
|
||||||
ENV === "production"
|
ENV === "production"
|
||||||
? `${this.baseUrl}/sgzbgl-api/auth`
|
? `${this.baseUrl}/dev-api/auth`
|
||||||
: `${this.baseUrl}/auth`;
|
: `${this.baseUrl}/auth`;
|
||||||
systemPath =
|
systemPath =
|
||||||
ENV === "production"
|
ENV === "production"
|
||||||
? `${this.baseUrl}/sgzbgl-api/system`
|
? `${this.baseUrl}/dev-api/system`
|
||||||
: `${this.baseUrl}/system`;
|
: `${this.baseUrl}/system`;
|
||||||
basePath =
|
basePath =
|
||||||
ENV === "production"
|
ENV === "production"
|
||||||
? `${this.baseUrl}/sgzbgl-api/material/base`
|
? `${this.baseUrl}/dev-api/material/base`
|
||||||
: `${this.baseUrl}/material/base`;
|
: `${this.baseUrl}/material/base`;
|
||||||
materialPath =
|
materialPath =
|
||||||
ENV === "production"
|
ENV === "production"
|
||||||
? `${this.baseUrl}/sgzbgl-api/material`
|
? `${this.baseUrl}/dev-api/material`
|
||||||
: `${this.baseUrl}/material`;
|
: `${this.baseUrl}/material`;
|
||||||
// 短链
|
// 短链
|
||||||
serviceUrl = {
|
serviceUrl = {
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ class Http {
|
||||||
title: "登录状态过期,请重新登录!",
|
title: "登录状态过期,请重新登录!",
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
// url: '/pages/login/login'
|
url: "/pages/login/login",
|
||||||
url: "/pages/nwLogin/index",
|
// url: "/pages/nwLogin/index",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
@ -56,8 +56,8 @@ class Http {
|
||||||
title: "登录状态过期,请重新登录!",
|
title: "登录状态过期,请重新登录!",
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
// url: "/pages/login/login",
|
url: "/pages/login/login",
|
||||||
url: "/pages/nwLogin/index",
|
// url: "/pages/nwLogin/index",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
@ -93,8 +93,8 @@ class Http {
|
||||||
title: "登录状态过期,请重新登录!",
|
title: "登录状态过期,请重新登录!",
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
// url: "/pages/login/login",
|
url: "/pages/login/login",
|
||||||
url: "/pages/nwLogin/index",
|
// url: "/pages/nwLogin/index",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
@ -129,8 +129,8 @@ class Http {
|
||||||
title: "登录状态过期,请重新登录!",
|
title: "登录状态过期,请重新登录!",
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
// url: "/pages/login/login",
|
url: "/pages/login/login",
|
||||||
url: "/pages/nwLogin/index",
|
// url: "/pages/nwLogin/index",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
@ -163,8 +163,8 @@ class Http {
|
||||||
title: "登录状态过期,请重新登录!",
|
title: "登录状态过期,请重新登录!",
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
// url: "/pages/login/login",
|
url: "/pages/login/login",
|
||||||
url: "/pages/nwLogin/index",
|
// url: "/pages/nwLogin/index",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -358,8 +358,8 @@ import { basePath } from '../../public'
|
||||||
uni.removeStorageSync('token')
|
uni.removeStorageSync('token')
|
||||||
uni.removeStorageSync('userInfo')
|
uni.removeStorageSync('userInfo')
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
// url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
url: '/pages/nwLogin/index'
|
// url: '/pages/nwLogin/index'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -434,8 +434,8 @@
|
||||||
uni.removeStorageSync("token");
|
uni.removeStorageSync("token");
|
||||||
uni.removeStorageSync("userInfo");
|
uni.removeStorageSync("userInfo");
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
// url: "/pages/login/login",
|
url: "/pages/login/login",
|
||||||
url: "/pages/nwLogin/index",
|
// url: "/pages/nwLogin/index",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -644,8 +644,8 @@
|
||||||
uni.removeStorageSync("token");
|
uni.removeStorageSync("token");
|
||||||
uni.removeStorageSync("userInfo");
|
uni.removeStorageSync("userInfo");
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
// url: "/pages/login/login",
|
url: "/pages/login/login",
|
||||||
url: "/pages/nwLogin/index",
|
// url: "/pages/nwLogin/index",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -273,12 +273,12 @@
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.removeStorageSync("token");
|
uni.removeStorageSync("token");
|
||||||
uni.removeStorageSync("userInfo");
|
uni.removeStorageSync("userInfo");
|
||||||
// uni.reLaunch({
|
|
||||||
// url: "/pages/login/login",
|
|
||||||
// });
|
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: "/pages/nwLogin/index",
|
url: "/pages/login/login",
|
||||||
});
|
});
|
||||||
|
// uni.reLaunch({
|
||||||
|
// url: "/pages/nwLogin/index",
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,8 +72,8 @@
|
||||||
uni.removeStorageSync("token");
|
uni.removeStorageSync("token");
|
||||||
uni.removeStorageSync("userInfo");
|
uni.removeStorageSync("userInfo");
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
// url: "/pages/login/login",
|
url: "/pages/login/login",
|
||||||
url: "/pages/nwLogin/index",
|
// url: "/pages/nwLogin/index",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
14
router.js
14
router.js
|
|
@ -25,16 +25,16 @@ const router = createRouter({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// 重庆登录页
|
// 重庆登录页
|
||||||
// {
|
|
||||||
// "path": "/pages/login/login",
|
|
||||||
// "name": 'login'
|
|
||||||
// },
|
|
||||||
|
|
||||||
// 南网登陆页
|
|
||||||
{
|
{
|
||||||
path: "/pages/nwLogin/index",
|
path: "/pages/login/login",
|
||||||
name: "login",
|
name: "login",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 南网登陆页
|
||||||
|
// {
|
||||||
|
// path: "/pages/nwLogin/index",
|
||||||
|
// name: "login",
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
path: "/pages/fetchMaterial/fetchMaterial",
|
path: "/pages/fetchMaterial/fetchMaterial",
|
||||||
name: "fetchMaterial",
|
name: "fetchMaterial",
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue