diff --git a/src/App.vue b/src/App.vue index b6686c2..9da29e0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,6 +8,9 @@ import { mapState, mapActions, mapMutations } from 'vuex' import * as dd from 'dingtalk-jsapi' import { apiDingtalkLogin, apiUserInfo } from '@/api/login' + +import VConsole from 'vconsole' + export default { name: 'App', data () { @@ -27,6 +30,10 @@ export default { }, async created () { if (!dd.other) { + var vConsole = new VConsole({ + vConsole_switch_x: 0, + vConsole_switch_y: 0 + }) await this.handleGetDingtalkCode() await this.handleDingtalkLogin() } diff --git a/src/main.js b/src/main.js index 2111bb2..38fc3ec 100644 --- a/src/main.js +++ b/src/main.js @@ -9,20 +9,11 @@ import './utils/elementConfig' import './utils/permission' import './style/index.less' import '@/icons' -import VConsole from 'vconsole' + import VueCookie from 'vue-cookies' import { debounce, departGetForm, personlGetForm, handleInput, messageSuccess, loading, loadingClose } from '@/utils/common' import { format } from '@/utils/dateFormat' Vue.mixin(Mixin) -// } - -// let hostList = ['lzmanagement.ldxinyong.com'] -// if (!hostList.includes(window.location.host)) { -var vConsole = new VConsole({ - vConsole_switch_x: 0, - vConsole_switch_y: 0 -}) - Vue.use(VueCookie) Vue.config.productionTip = false Vue.prototype.$loadingStart = loading diff --git a/src/views/kpi/set/authority/index.vue b/src/views/kpi/set/authority/index.vue index 35a852a..2af1d91 100644 --- a/src/views/kpi/set/authority/index.vue +++ b/src/views/kpi/set/authority/index.vue @@ -323,16 +323,16 @@