Commit cbcc44bf by 李伟康

commit

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