去除代理
This commit is contained in:
6
App.vue
6
App.vue
@@ -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',
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -487,7 +487,7 @@
|
|||||||
this.setData({
|
this.setData({
|
||||||
params: params,
|
params: params,
|
||||||
});
|
});
|
||||||
// this.initWechatSdk();
|
this.initWechatSdk();
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|||||||
Reference in New Issue
Block a user