From 1d26651752a9de215c25a39068b6f9423add4341 Mon Sep 17 00:00:00 2001 From: Net Date: Tue, 13 May 2025 16:26:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=95=99=E5=B8=88=E6=A1=A3?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.ts | 5 +++-- src/manifest.json | 6 +++--- src/pages/system/launchPage/launchPage.vue | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) 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" })