From acf7f69d8e0e5ff5432c1dac0e4d5a6d8662cd70 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Tue, 29 Oct 2024 18:06:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=91=E5=AE=9A=E7=9B=B8=E5=85=B3=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 +++ src/main.js | 3 ++- src/permission.js | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0b43c319..60338ee3 100644 --- a/package.json +++ b/package.json @@ -46,10 +46,13 @@ "file-saver": "2.0.5", "fuse.js": "6.4.3", "highlight.js": "9.18.5", + "html2canvas": "^1.4.1", "js-beautify": "1.13.0", "js-cookie": "3.0.1", "jsencrypt": "3.0.0-rc.1", + "jszip": "^3.10.1", "nprogress": "0.2.0", + "qrcodejs2": "^0.0.2", "quill": "1.3.7", "screenfull": "5.0.2", "sm-crypto": "^0.3.13", diff --git a/src/main.js b/src/main.js index 6070bb34..20dfb512 100644 --- a/src/main.js +++ b/src/main.js @@ -38,6 +38,7 @@ import VueMeta from 'vue-meta' // 字典数据组件 import DictData from '@/components/DictData' +import global_ from '@/utils/globalUrl' // 全局方法挂载 Vue.prototype.getDicts = getDicts Vue.prototype.getConfigKey = getConfigKey @@ -48,7 +49,7 @@ Vue.prototype.selectDictLabel = selectDictLabel Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.download = download Vue.prototype.handleTree = handleTree - +Vue.prototype.globalUrl = global_ // 全局组件挂载 Vue.component('DictTag', DictTag) Vue.component('Pagination', Pagination) diff --git a/src/permission.js b/src/permission.js index d04ec990..c2d913e5 100644 --- a/src/permission.js +++ b/src/permission.js @@ -8,7 +8,10 @@ import { isRelogin } from '@/utils/request' NProgress.configure({ showSpinner: false }) -const whiteList = ['/login', '/register'] +const whiteList = [ + '/login', '/register', + '/qrCode/qrCodePage', +] router.beforeEach((to, from, next) => { NProgress.start()