| | |
| | | </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], |
| | |
| | | |
| | | 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( |