From 1a95b0bb8d0f7a9f2a1d18c719f3a8b68f58fc2d Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 20 三月 2024 10:36:36 +0800 Subject: [PATCH] 工单、考核结果发布按钮权限 --- src/main.js | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 13c6cf2..9ede569 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,7 @@ import Vue from 'vue' import Cookies from 'js-cookie' - +import { getToken } from "@/utils/auth"; import Element from 'element-ui' import './assets/styles/element-variables.scss' @@ -38,6 +38,12 @@ // 瀛楀吀鏁版嵁缁勪欢 import DictData from '@/components/DictData' +// 澶у睆 +import VScaleScreen from 'v-scale-screen' +import dataV from '@jiaminghi/data-view' + + + // 鍏ㄥ眬鏂规硶鎸傝浇 Vue.prototype.getDicts = getDicts Vue.prototype.getConfigKey = getConfigKey @@ -48,6 +54,7 @@ Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.download = download Vue.prototype.handleTree = handleTree +Vue.prototype.getToken = getToken // 鍏ㄥ眬缁勪欢鎸傝浇 Vue.component('DictTag', DictTag) @@ -61,6 +68,8 @@ Vue.use(directive) Vue.use(plugins) Vue.use(VueMeta) +Vue.use(VScaleScreen) +Vue.use(dataV) DictData.install() /** @@ -76,7 +85,7 @@ size: Cookies.get('size') || 'medium' // set element-ui default size }) -Vue.config.productionTip = false +Vue.config.productionTip = true new Vue({ el: '#app', -- Gitblit v1.8.0