From 01af846a68c12c561e81be91f0644cfd7babf055 Mon Sep 17 00:00:00 2001 From: xuyuncong <3422692813@qq.com> Date: Tue, 21 Oct 2025 18:37:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.js b/src/main.js index fee88d6..1f8842d 100644 --- a/src/main.js +++ b/src/main.js @@ -33,6 +33,7 @@ import ImagePreview from "@/components/ImagePreview/index.vue"; import {DICT_TYPE, getDictDataLabel, getDictDatas, getDictDatas2} from "@/utils/dict"; // 二维码 import VueQriously from 'vue-qriously' +import { checkPermi, checkRole } from "@/utils/permission"; // 全局方法挂载 Vue.prototype.getDicts = getDicts @@ -47,6 +48,8 @@ Vue.prototype.handleTree = handleTree Vue.prototype.addBeginAndEndTime = addBeginAndEndTime Vue.prototype.divide = divide Vue.prototype.download = download +Vue.prototype.checkPermi = checkPermi +Vue.prototype.checkRole = checkRole // 全局组件挂载 Vue.component('DictTag', DictTag)