From 3d0cf4093bd3287c7529c1ce8108ae1fe4e420b5 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 06 三月 2025 09:54:35 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev
---
src/main.js | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/main.js b/src/main.js
index 9ae30ea..96827ef 100644
--- a/src/main.js
+++ b/src/main.js
@@ -48,6 +48,9 @@
// 瀛楀吀鏁版嵁缁勪欢
import DictData from "@/components/DictData";
import { checkPermi } from "@/utils/permission"; // 鏉冮檺鍒ゆ柇鍑芥暟
+import { getToken } from "@/utils/auth";
+// 鏃堕棿杞崲
+import Moment from "moment";
// 鍏ㄥ眬鏂规硶鎸傝浇
Vue.prototype.getDicts = getDicts;
@@ -67,6 +70,20 @@
? process.env.VUE_APP_BASE_API
: "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.use(Moment);
+Vue.prototype.$moment = Moment;
// 鍏ㄥ眬缁勪欢鎸傝浇
Vue.component("DictTag", DictTag);
--
Gitblit v1.9.3