fix: valueitem组件附件上传地址改为公共地址

This commit is contained in:
JiangQiming 2023-01-17 17:45:02 +08:00
parent e8d0eab231
commit f59567b1ed
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@
<template #addonAfter>
<a-upload
name="file"
:action="action"
:action="FILE_UPLOAD"
:headers="headers"
:showUploadList="false"
@change="handleFileChange"
@ -89,6 +89,7 @@ import GeoComponent from '@/components/GeoComponent/index.vue';
import { BASE_API_PATH, TOKEN_KEY } from '@/utils/variable';
import { LocalStore } from '@/utils/comm';
import { ItemData, ITypes } from './types';
import { FILE_UPLOAD } from '@/api/comm';
type Emits = {
(e: 'update:modelValue', data: string | number | boolean): void;
@ -161,7 +162,6 @@ const handleItemModalSubmit = () => {
};
//
const action = ref<string>(`${BASE_API_PATH}/file/static`);
const headers = ref({ [TOKEN_KEY]: LocalStore.get(TOKEN_KEY) });
const handleFileChange = (info: UploadChangeParam<UploadFile<any>>) => {
if (info.file.status === 'done') {