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)