完成教师档案

This commit is contained in:
Net 2025-05-13 16:26:33 +08:00
parent 68a4707644
commit 1d26651752
3 changed files with 7 additions and 6 deletions

View File

@ -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过期返回状态码

View File

@ -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": {

View File

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