去除代理

This commit is contained in:
gyq
2025-04-30 09:36:36 +08:00
parent 0844db0c57
commit 12c4fb3629
3 changed files with 16 additions and 14 deletions

View File

@@ -8,10 +8,12 @@
data: { data: {
// 基础配置 // 基础配置
// 数据接口请求地址 // 数据接口请求地址
request_url: env == 'development' ? '/api/' : 'https://store.sxczgkj.com/', // request_url: env == 'development' ? '/api/' : 'https://store.sxczgkj.com/',
request_url: 'https://store.sxczgkj.com/',
// 静态资源地址如系统根目录不在public目录下面请在静态地址后面加public目录、如https://d1.shopxo.vip/public/ // 静态资源地址如系统根目录不在public目录下面请在静态地址后面加public目录、如https://d1.shopxo.vip/public/
static_url: env == 'development' ? '/api/' : 'https://store.sxczgkj.com/', // static_url: env == 'development' ? '/api/' : 'https://store.sxczgkj.com/',
static_url: 'https://store.sxczgkj.com/',
// 系统类型默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立 // 系统类型默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立
system_type: 'default', system_type: 'default',

View File

@@ -244,17 +244,17 @@
}, },
"devServer" : { "devServer" : {
"https" : false, "https" : false,
"port" : 8082, "port" : 8082
"proxy" : { // "proxy" : {
"/api" : { // "/api" : {
// "target": "http://192.168.1.43:7777/", // // "target": "http://192.168.1.43:7777/",
"target" : "https://store.sxczgkj.com/", // "target" : "https://store.sxczgkj.com/",
"changeOrigin" : "true", // "changeOrigin" : "true",
"pathRewrite" : { // "pathRewrite" : {
"^/api" : "" // "^/api" : ""
} // }
} // }
} // }
}, },
"router" : { "router" : {
"mode" : "history", "mode" : "history",

View File

@@ -487,7 +487,7 @@
this.setData({ this.setData({
params: params, params: params,
}); });
// this.initWechatSdk(); this.initWechatSdk();
}, },
onShow() { onShow() {