From f9eaa7ecc580fb6feabb0eece37a095f0d5af21d Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期四, 27 二月 2025 10:22:47 +0800 Subject: [PATCH] 检验任务-数据查看bug --- src/main.js | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/main.js b/src/main.js index f0f2eb0..5809760 100644 --- a/src/main.js +++ b/src/main.js @@ -48,6 +48,7 @@ // 瀛楀吀鏁版嵁缁勪欢 import DictData from "@/components/DictData"; import { checkPermi } from "@/utils/permission"; // 鏉冮檺鍒ゆ柇鍑芥暟 +import { getToken } from "@/utils/auth"; // 鍏ㄥ眬鏂规硶鎸傝浇 Vue.prototype.getDicts = getDicts; @@ -65,8 +66,20 @@ }; Vue.prototype.javaApi = process.env.VUE_APP_BASE_API ? process.env.VUE_APP_BASE_API - : "http://192.168.0.170:8002"; + : "http://192.168.1.36:8002"; Vue.prototype.checkPermi = checkPermi; +Vue.prototype.uploadHeader = { + Authorization: "Bearer " + getToken(), +}; +// 瑙e喅el-radio-group鍗曢�夋鑷韩鐨刡ug +Vue.directive('removeAriaHidden', { + bind(el, binding) { + let ariaEls = el.querySelectorAll('.el-radio__original'); + ariaEls.forEach((item) => { + item.removeAttribute('aria-hidden'); + }); + } +}) // 鍏ㄥ眬缁勪欢鎸傝浇 Vue.component("DictTag", DictTag); -- Gitblit v1.9.3