Commit 9b1b1270 by weix

修改bug

parent 808c9981
...@@ -16,4 +16,4 @@ VUE_APP_BASE_API11 = 'https://oss.xoado.com/v1/' ...@@ -16,4 +16,4 @@ VUE_APP_BASE_API11 = 'https://oss.xoado.com/v1/'
VUE_APP_BASE_API12 = 'http://xoado.tpddns.net:10001' VUE_APP_BASE_API12 = 'http://xoado.tpddns.net:10001'
VUE_APP_BASE_API13 = 'http://xoado.tpddns.net:10001/anc' VUE_APP_BASE_API13 = 'http://xoado.tpddns.net:10001/anc'
VUE_APP_BASE_API14 = 'http://xoado.tpddns.cn:10001/xoadotravel' VUE_APP_BASE_API14 = 'http://xoado.tpddns.cn:10001/xoadotravel'
VUE_APP_BASE_API15 = 'http://xoado.tpddns.net:10001/brand' VUE_APP_BASE_API15 = 'http://xoado.tpddns.net:10001/smart'
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
methods: { methods: {
loginout() { loginout() {
this.$store.dispatch('user/loginOut'); this.$store.dispatch('user/loginOut');
this.$store.commit('business/DEL_BRANDLIST')
} }
}, },
computed: { computed: {
......
...@@ -39,6 +39,10 @@ const mutations = { ...@@ -39,6 +39,10 @@ const mutations = {
state.brandList = payload state.brandList = payload
sessionStorage.setItem('brandList', payload) sessionStorage.setItem('brandList', payload)
}, },
DEL_BRANDLIST(state) {
state.brandList = '';
sessionStorage.removeItem('brandList');
}
} }
const actions = { const actions = {
...@@ -50,17 +54,16 @@ const actions = { ...@@ -50,17 +54,16 @@ const actions = {
/** 正式环境注释 */ /** 正式环境注释 */
res.data.forEach(item => { res.data.forEach(item => {
if(item.brandName.indexOf('玖玖') !== -1) { if(item.brandName.indexOf('玖玖') !== -1) {
item.brandUrl = 'http://192.168.0.251:8181/brand'; item.brandUrl = 'http://xoado.tpddns.net:10001/brand';
} }
if(item.brandName.indexOf('江南') !== -1) { if(item.brandName.indexOf('江南') !== -1) {
item.brandUrl = 'http://192.168.0.251:9191/brand'; item.brandUrl = 'http://xoado.tpddns.net:10001/brandjn';
} }
if(item.brandName.indexOf('妥妥') !== -1) { if(item.brandName.indexOf('妥妥') !== -1) {
item.brandUrl = 'http://192.168.0.251:9292/brand'; item.brandUrl = 'http://xoado.tpddns.net:10001/brandtt';
} }
}) })
/** 测试环境注释 */ /** 测试环境注释 */
// res.data.forEach(item => { // res.data.forEach(item => {
// item.brandUrl = item.brandUrl+'/brand'; // item.brandUrl = item.brandUrl+'/brand';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment