diff --git a/src/App.vue b/src/App.vue index a834bdb..596d775 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,6 @@ -
@@ -52,6 +51,7 @@ export default { this.dd = dd }, methods: { + // 在钉钉环境双击显示 vconsole handleShowVcnsole () { var vConsole = new VConsole({ vConsole_switch_x: 0, diff --git a/src/mixins/gload.js b/src/mixins/gload.js index d205c76..f761231 100644 --- a/src/mixins/gload.js +++ b/src/mixins/gload.js @@ -5,6 +5,7 @@ let mixin = { return {} }, computed: { + // auth全局权限 在登录成功后获取 ...mapGetters(['auth']) }, methods: { diff --git a/src/utils/common.js b/src/utils/common.js index 6ec083c..8d1d380 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -114,16 +114,17 @@ const opt = { background: 'rgba(255, 255, 255, 0.8)', spinner: 'el-icon-loading', text: '数据加载中'} +// loading开启 export function loading (options = opt) { this.$loading.service(options) } - +// loading 关闭 export function loadingClose () { setTimeout(() => { this.$loading.service(opt).close() }, 100) } - +// 通过 url 获取参数 export function getUrlParams () { var query = decodeURI(window.location.search.substring(1)) console.log('query: ', query)