|
@@ -105,15 +105,17 @@ const appConfigStore = useAppConfig();
|
|
|
const { AppConfigInfo } = storeToRefs(appConfigStore); // 系统配置信息
|
|
|
const fileTypeAccept = AppConfigInfo.value?.fileExt;
|
|
|
const action = computed(() => {
|
|
|
- // return import.meta.env.VITE_API_UPLOAD_URL + '/file/upload?source=hotline';
|
|
|
- return 'http://171.94.154.2:50105/hlfs/file/upload?source=hotline';
|
|
|
+ return import.meta.env.VITE_API_UPLOAD_URL + '/file/upload?source=hotline';
|
|
|
+ // return 'http://171.94.154.2:50105/hlfs/file/upload?source=hotline';
|
|
|
});
|
|
|
// 上传成功
|
|
|
const fileList = ref<EmptyArrayType>([]);
|
|
|
const uploadListRef = ref<RefType>(); // 上传组件ref
|
|
|
// 上传成功
|
|
|
const updateSuccess = ()=>{
|
|
|
- updateData();
|
|
|
+ setTimeout(()=>{
|
|
|
+ updateData();
|
|
|
+ },100)
|
|
|
}
|
|
|
// 更新数据
|
|
|
const updateData = () => {
|
|
@@ -145,7 +147,9 @@ const handleExceed = (files: any) => {
|
|
|
//限制文件大小
|
|
|
const handleChangeFile = (file: any, fileList: any) => {
|
|
|
//限制上传文件大小
|
|
|
- updateData();
|
|
|
+ setTimeout(()=>{
|
|
|
+ updateData();
|
|
|
+ },100)
|
|
|
if (!file) return;
|
|
|
const isLt2M = file.size / 1024 / 1024 < props.fileSize;
|
|
|
if (!isLt2M) {
|