去除代理
This commit is contained in:
parent
0844db0c57
commit
12c4fb3629
6
App.vue
6
App.vue
|
|
@ -8,10 +8,12 @@
|
|||
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/)
|
||||
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、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立)
|
||||
system_type: 'default',
|
||||
|
|
|
|||
|
|
@ -244,17 +244,17 @@
|
|||
},
|
||||
"devServer" : {
|
||||
"https" : false,
|
||||
"port" : 8082,
|
||||
"proxy" : {
|
||||
"/api" : {
|
||||
// "target": "http://192.168.1.43:7777/",
|
||||
"target" : "https://store.sxczgkj.com/",
|
||||
"changeOrigin" : "true",
|
||||
"pathRewrite" : {
|
||||
"^/api" : ""
|
||||
}
|
||||
}
|
||||
}
|
||||
"port" : 8082
|
||||
// "proxy" : {
|
||||
// "/api" : {
|
||||
// // "target": "http://192.168.1.43:7777/",
|
||||
// "target" : "https://store.sxczgkj.com/",
|
||||
// "changeOrigin" : "true",
|
||||
// "pathRewrite" : {
|
||||
// "^/api" : ""
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
},
|
||||
"router" : {
|
||||
"mode" : "history",
|
||||
|
|
|
|||
|
|
@ -487,7 +487,7 @@
|
|||
this.setData({
|
||||
params: params,
|
||||
});
|
||||
// this.initWechatSdk();
|
||||
this.initWechatSdk();
|
||||
},
|
||||
|
||||
onShow() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue