测试app上传文件

main
王宇航 2024-05-17 13:22:32 +08:00
parent 47999fdd88
commit 95a0bbce2f
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ export default defineComponent({
const userStore = useUserStore() const userStore = useUserStore()
const uploadRefs = shallowRef<InstanceType<typeof ElUpload>>() const uploadRefs = shallowRef<InstanceType<typeof ElUpload>>()
const action = ref(`${config.baseUrl}${config.urlPrefix}/upload/${props.type}`) const action = ref(`${config.baseUrl}${config.urlPrefix}/upload/${props.type}`)
// const action = ref(`http://localhost:7890/api/upload/image`)
const headers = computed(() => ({ const headers = computed(() => ({
['like-admin']: userStore.token, ['like-admin']: userStore.token,
version: config.version version: config.version