From f01d916828cf9746a0f438d9472af9271efd9729 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期一, 03 三月 2025 14:47:47 +0800 Subject: [PATCH] 完成设备搬迁 --- src/main.js | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index 28883c0..0736a8c 100644 --- a/src/main.js +++ b/src/main.js @@ -49,6 +49,8 @@ import DictData from "@/components/DictData"; import { checkPermi } from "@/utils/permission"; // 鏉冮檺鍒ゆ柇鍑芥暟 import { getToken } from "@/utils/auth"; +// 鏃堕棿杞崲 +import Moment from "moment"; // 鍏ㄥ眬鏂规硶鎸傝浇 Vue.prototype.getDicts = getDicts; @@ -71,6 +73,17 @@ 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.use(Moment); +Vue.prototype.$moment = Moment; // 鍏ㄥ眬缁勪欢鎸傝浇 Vue.component("DictTag", DictTag); -- Gitblit v1.9.3