重庆打包配置

This commit is contained in:
BianLzhaoMin 2024-09-23 08:28:02 +08:00
parent 579ad71cac
commit ddb64815d9
10 changed files with 40 additions and 40 deletions

View File

@ -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 = {

View File

@ -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",
}); });
}, },
}); });

View File

@ -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'
}) })
} }
}) })

View File

@ -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",
}); });
}, },
}); });

View File

@ -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",
}); });
}, },
}); });

View File

@ -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",
// });
}, },
}); });
} }

View File

@ -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",
}); });
} }
}, },

View File

@ -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