From 93fb212e0c0d5e8f2a78ae360e2126dc5c7d8698 Mon Sep 17 00:00:00 2001 From: ahao <liuhaoai545@gmail.com> Date: 星期六, 02 九月 2023 00:55:02 +0800 Subject: [PATCH] fix #I7WUYJ 菜单切换主题为浅色主题后颜色不正常 --- src/components/FileUpload/index.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 32e871f..be99ac0 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -43,9 +43,9 @@ </template> <script setup lang="ts"> -import { getToken } from "@/utils/auth"; import { listByIds, delOss } from "@/api/system/oss"; import { propTypes } from '@/utils/propTypes'; +import { globalHeaders } from "@/utils/request"; const props = defineProps({ modelValue: [String, Object, Array], @@ -66,7 +66,7 @@ const baseUrl = import.meta.env.VITE_APP_BASE_API; const uploadFileUrl = ref(baseUrl + "/resource/oss/upload"); // 涓婁紶鏂囦欢鏈嶅姟鍣ㄥ湴鍧� -const headers = ref({ Authorization: "Bearer " + getToken() }); +const headers = ref(globalHeaders()); const fileList = ref<any[]>([]); const showTip = computed( -- Gitblit v1.9.3