Commit 7d69a248 by 祖铭松(前端)

feat: 生产环境配置

1 parent 529151af
...@@ -16,7 +16,7 @@ module.exports = { ...@@ -16,7 +16,7 @@ module.exports = {
? {} ? {}
: { : {
"/proxyApi": { "/proxyApi": {
target: "http://1.12.76.77:8181/sqx_fast/", target: "https://api2.kuaidi.ledianyun.com/sqx_fast/",
// target: 'https://admin.sj088.cn/sqx_fast/', // target: 'https://admin.sj088.cn/sqx_fast/',
changeOrigin: true, changeOrigin: true,
logLevel: "debug", logLevel: "debug",
...@@ -25,7 +25,7 @@ module.exports = { ...@@ -25,7 +25,7 @@ module.exports = {
} }
}, },
"/ldyApi": { "/ldyApi": {
target: "http://api.kuaidi.ledianyun.com/", target: "https://api.kuaidi.ledianyun.com/",
changeOrigin: true, changeOrigin: true,
logLevel: "debug", logLevel: "debug",
pathRewrite: { pathRewrite: {
......
This diff could not be displayed because it is too large.
...@@ -13,14 +13,14 @@ const isDev = process.env.NODE_ENV === "development"; ...@@ -13,14 +13,14 @@ const isDev = process.env.NODE_ENV === "development";
export default new Vuex.Store({ export default new Vuex.Store({
state: { state: {
baseURL: !isDev baseURL: !isDev
? "http://api.kuaidi.ledianyun.com/" ? "https://api.kuaidi.ledianyun.com/"
: "http://api.kuaidi.ledianyun.com/", : "https://api.kuaidi.ledianyun.com/",
domainURL: !isDev domainURL: !isDev
? "http://pc.kuaidi.ledianyun.com/" ? "https://pc.kuaidi.ledianyun.com/"
: "http://pc.kuaidi.ledianyun.com/", : "https://pc.kuaidi.ledianyun.com/",
designBaseURL: "http://api.kuaidi.ledianyun.com/", designBaseURL: "https://api.kuaidi.ledianyun.com/",
designBaseURL2: "http://1.12.76.77:8181/sqx_fast/", designBaseURL2: "https://1.12.76.77:8181/sqx_fast/",
designTestURL: "http://api.kuaidi.ledianyun.com/", designTestURL: "https://api.kuaidi.ledianyun.com/",
pageLoading: false pageLoading: false
}, },
modules: { modules: {
......
...@@ -87,7 +87,7 @@ http.adornUrl = actionName => { ...@@ -87,7 +87,7 @@ http.adornUrl = actionName => {
? "/proxyApi/" ? "/proxyApi/"
: window.SITE_CONFIG.baseUrl) + actionName : window.SITE_CONFIG.baseUrl) + actionName
); );
// return 'http://1.12.76.77:8181/sqx_fast' + actionName // return 'https://api2.kuaidi.ledianyun.com/sqx_fast' + actionName
// return 'https://admin.sj088.cn/sqx_fast/' + actionName // return 'https://admin.sj088.cn/sqx_fast/' + actionName
}; };
http.adornLdyUrl = actionName => { http.adornLdyUrl = actionName => {
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
window.SITE_CONFIG = {}; window.SITE_CONFIG = {};
// api接口请求地址 // api接口请求地址
window.SITE_CONFIG['baseUrl'] = 'http://1.12.76.77:8181/sqx_fast/'; window.SITE_CONFIG['baseUrl'] = 'https://api2.kuaidi.ledianyun.com/sqx_fast/';
window.SITE_CONFIG['baseUrl_ldy'] = 'http://api.kuaidi.ledianyun.com/'; window.SITE_CONFIG['baseUrl_ldy'] = 'https://api.kuaidi.ledianyun.com/';
// cdn地址 = 域名 + 版本号 // cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './'; // 域名 window.SITE_CONFIG['domain'] = './'; // 域名
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!