Commit cbcc44bf by 李伟康

commit

1 parent 6d08ea3b
...@@ -143,7 +143,6 @@ const actions = { ...@@ -143,7 +143,6 @@ const actions = {
let loginList = util.getLocalStorage('dj_scrm_accountList') let loginList = util.getLocalStorage('dj_scrm_accountList')
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 (!state.testView) state.testView = `${JSON.stringify(userInfo)}`
if (dj_scrm && userInfo) { if (dj_scrm && userInfo) {
if (dj_scrm.corpId != userInfo.entmicroId) { if (dj_scrm.corpId != userInfo.entmicroId) {
util.showLoading() util.showLoading()
......
<template> <template>
<div class="layout"> <div class="layout">
<div class="title">请选择登录商户号{{testView}}</div> <div class="title">请选择登录商户号</div>
<div class="box"> <div class="box">
<template v-for="(item,index) in accountList"> <template v-for="(item,index) in accountList">
<div <div
...@@ -43,19 +43,19 @@ export default { ...@@ -43,19 +43,19 @@ export default {
mounted() { mounted() {
this.accountList = this.getLocalStorage('dj_scrm_accountList') this.accountList = this.getLocalStorage('dj_scrm_accountList')
}, },
watch: { // watch: {
watchFlag: { // watchFlag: {
immediate: true, // immediate: true,
handler(newval) { // handler(newval) {
this.testView = newval // this.testView = newval
} // }
} // }
}, // },
computed: { // computed: {
watchFlag() { // watchFlag() {
return this.$store.state.app.testView // return this.$store.state.app.testView
} // }
}, // },
methods: { methods: {
choose(e) { choose(e) {
this.showLoading( this.showLoading(
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!