Authored by 陈峰

配置

  1 +
1 export default { 2 export default {
  3 + dev: {
2 historyMode: 'history', 4 historyMode: 'history',
3 shopsFeDomain: 'http://shops.yohobuy.com', 5 shopsFeDomain: 'http://shops.yohobuy.com',
4 axiosBaseUrl: '/Api', 6 axiosBaseUrl: '/Api',
@@ -7,4 +9,15 @@ export default { @@ -7,4 +9,15 @@ export default {
7 storeKeys: { 9 storeKeys: {
8 user: '_user', 10 user: '_user',
9 } 11 }
  12 + },
  13 + production: {
  14 + historyMode: 'history',
  15 + shopsFeDomain: 'http://shops.yohops.com',
  16 + axiosBaseUrl: '/Api',
  17 + axiosResponseType: 'json',
  18 + homePage: 'home.overview',
  19 + storeKeys: {
  20 + user: '_user',
  21 + }
  22 + }
10 }; 23 };
@@ -86,7 +86,7 @@ const plugin = { @@ -86,7 +86,7 @@ const plugin = {
86 Vue.use(Router); 86 Vue.use(Router);
87 87
88 // 附加Vue原型属性 88 // 附加Vue原型属性
89 - Vue.prop('config', config); 89 + Vue.prop('config', config[process.env.NODE_ENV]);
90 Vue.prop('store', store); 90 Vue.prop('store', store);
91 Vue.prop('cookie', cookie); 91 Vue.prop('cookie', cookie);
92 92
1 { 1 {
2 "name": "yoho-shop-manage", 2 "name": "yoho-shop-manage",
3 - "version": "1.0.2", 3 + "version": "1.0.3",
4 "description": "", 4 "description": "",
5 "main": "app.js", 5 "main": "app.js",
6 "scripts": { 6 "scripts": {