diff --git a/src/App.vue b/src/App.vue index 4411f19..4e63065 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,6 +15,7 @@ import util from '@/libs/util'; import selectBusiness from '@/components/selectBusiness' import TipDialog from '@/components/tipDialog' import { mapState, mapMutations } from 'vuex' +import Bus from '@/libs/bus' export default { name: 'App', components: { @@ -54,7 +55,7 @@ export default { }, watch: { showIt: { - handler (newVal) { + handler (newVal) { console.log("🚀 ~ file: App.vue:58 ~ handler ~ newVal:", newVal, this.businessKey, sessionStorage.getItem('submited')) if (!newVal && !this.businessKey && !sessionStorage.getItem('submited')) { this.setShowBusiness(true) @@ -62,7 +63,6 @@ export default { if (!newVal) { // 如果未选择业务,则关闭后继续弹出弹框 if (!this.businessKey && !sessionStorage.getItem('submited')) { - console.log("🚀 ~ file: App.vue:65 ~ handler ~ submited:", sessionStorage.getItem('submited')) this.$nextTick(() => { this.setShowBusiness(true) }) } else { // this.setTipsOperate('您正在进行' + this.businessKey + ',加油!'); @@ -75,11 +75,15 @@ export default { immediate: true } }, + mounted () { + Bus.$on('setShowIt', data => { + this.showIt = data + }) + }, computed: { ...mapState({ businessKey: state => state.system.businessKey, showBusiness: state => state.system.showBusiness, - businessKey: state => state.system.businessKey }) }, } diff --git a/src/api/api.js b/src/api/api.js index bf99bbf..0f808f3 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -7,6 +7,7 @@ let host = `${location.origin}/` if (dev) { // 本地 host = 'http://121.37.12.51/' // 中台测试服 + // host = 'https://www.occupationlab.com/' // 正式服 // host = 'http://192.168.31.151:9000/' // 榕 // host = 'http://192.168.31.116:9000/' // 赓 } diff --git a/src/components/backButton/index.vue b/src/components/backButton/index.vue index 5953cc6..f342022 100644 --- a/src/components/backButton/index.vue +++ b/src/components/backButton/index.vue @@ -1,33 +1,35 @@ \ No newline at end of file diff --git a/src/components/breadcrumb/index.vue b/src/components/breadcrumb/index.vue index dd3d251..56e22f8 100644 --- a/src/components/breadcrumb/index.vue +++ b/src/components/breadcrumb/index.vue @@ -3,15 +3,12 @@