diff --git a/src/config.ts b/src/config.ts index 039659e..18113d6 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,6 +1,7 @@ const ip: string = "192.168.8.35:8897"; +const fwqip: string = "yufangzc.com"; //打包服务器接口代理标识 -const SERVERAGENT: string = "/"; +const SERVERAGENT: string = "/jsd-api"; //本地代理url地址,配置了就启动代理,没配置就不启动代理 export const HOMEAGENT: string = ""; // 接口地址 @@ -9,7 +10,7 @@ export const BASE_URL: string = // WebSocket地址 export const BASE_WS_URL: string = `wss://${ip}`; //图片地址 -export const BASE_IMAGE_URL: string = `http://${ip}/zhxy`; +export const BASE_IMAGE_URL: string = process.env.NODE_ENV == "development" ? `http://${ip}` : `https://${fwqip}`; //存token的key export const AUTH_KEY: string = "satoken"; //token过期返回状态码 diff --git a/src/manifest.json b/src/manifest.json index 6e889d7..96d5015 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,5 +1,5 @@ { - "name": "模版", + "name": "智慧校园", "appid": "__UNI__27C6F45", "description": "", "versionName": "1.0.0", @@ -207,9 +207,9 @@ "uniStatistics": { "enable": false }, - "publicPath": "/", + "publicPath": "/zhxy-jsd", "router": { - "base": "/", + "base": "/zhxy-jsd/", "mode": "hash" }, "sdkConfigs": { diff --git a/src/pages/system/launchPage/launchPage.vue b/src/pages/system/launchPage/launchPage.vue index 2f966b5..1fb9863 100644 --- a/src/pages/system/launchPage/launchPage.vue +++ b/src/pages/system/launchPage/launchPage.vue @@ -36,7 +36,7 @@ function toHome() { } } onLoad(async (data: any) => { - data.openId = "123"; + console.log(data); if (data && data.openId) { setGlobal(data); checkOpenId({ openId: data.openId, appCode: "JS" })