Commit 97c28f3d by 李伟康

commit

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