Authored by 陈峰

配置

export default {
historyMode: 'history',
shopsFeDomain: 'http://shops.yohobuy.com',
axiosBaseUrl: '/Api',
axiosResponseType: 'json',
homePage: 'home.overview',
storeKeys: {
user: '_user',
dev: {
historyMode: 'history',
shopsFeDomain: 'http://shops.yohobuy.com',
axiosBaseUrl: '/Api',
axiosResponseType: 'json',
homePage: 'home.overview',
storeKeys: {
user: '_user',
}
},
production: {
historyMode: 'history',
shopsFeDomain: 'http://shops.yohops.com',
axiosBaseUrl: '/Api',
axiosResponseType: 'json',
homePage: 'home.overview',
storeKeys: {
user: '_user',
}
}
};
... ...
... ... @@ -86,7 +86,7 @@ const plugin = {
Vue.use(Router);
// 附加Vue原型属性
Vue.prop('config', config);
Vue.prop('config', config[process.env.NODE_ENV]);
Vue.prop('store', store);
Vue.prop('cookie', cookie);
... ...
{
"name": "yoho-shop-manage",
"version": "1.0.2",
"version": "1.0.3",
"description": "",
"main": "app.js",
"scripts": {
... ...