From 3637c16d86cd20c1b6ddbe69e171c9feae6fac60 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 07 八月 2023 17:23:27 +0800 Subject: [PATCH] update 优化 删除字典无用状态字段(基本用不上 禁用后还会导致回显问题) --- src/components/ImageUpload/index.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 01edc4f..0c1e640 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -40,11 +40,11 @@ </template> <script setup lang="ts"> -import { getToken } from "@/utils/auth"; import { listByIds, delOss } from "@/api/system/oss"; -import { ComponentInternalInstance, PropType } from "vue"; +import { ComponentInternalInstance } from "vue"; import { OssVO } from "@/api/system/oss/types"; import { propTypes } from '@/utils/propTypes'; +import {globalHeaders} from "@/utils/request"; const props = defineProps({ modelValue: [String, Object, Array], @@ -70,7 +70,7 @@ const baseUrl = import.meta.env.VITE_APP_BASE_API; const uploadImgUrl = 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