Commit 97c28f3d by 李伟康

commit

1 parent f91952c1
......@@ -139,21 +139,17 @@ const actions = {
navigation ({ dispatch }, to) {
let { redirect_uri, corpId } = getParams()
let userInfo = util.getLocalStorage('dj_scrm_userInfo')
if (corpId) util.setLocalStorage('dj_scrm_corpId', { corpId })
if (redirect_uri) util.setLocalStorage('dj_scrm_redirect_uri', redirect_uri)
let dj_scrm = util.getLocalStorage('dj_scrm_corpId')
if (dj_scrm && userInfo) {
if (dj_scrm.corpId != userInfo.entmicroId) {
util.showLoading()
window.vm.testView = '清空了'
removeStoreage()
}
}
if (corpId && dj_scrm) {
util.setLocalStorage('dj_scrm_corpId', { corpId })
if (corpId != dj_scrm.corpId) {
util.showLoading()
removeStoreage()
}
}
login({
dispatch,
to
......
<template>
<div class="layout">
<div class="title">请选择登录商户号</div>
<div class="title">请选择登录商户号{{testView}}</div>
<div class="box">
<template v-for="(item,index) in accountList">
<div
......@@ -36,7 +36,7 @@ export default {
2: '省代',
3: '市代',
4: '门店'
}
},
}
},
mounted() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!