Commit 91b90092 by qinjianhui

fix: 问题修改

parent a4d37aa0
......@@ -42,7 +42,6 @@
import { computed, ref, watch } from 'vue'
import { Plus, Close } from '@element-plus/icons-vue'
import { uploadImageApi, uploadFileApi } from '@/api/common'
import { getFilePath } from '@/api/axios'
const props = defineProps({
modelValue: String,
disabled: Boolean,
......@@ -87,7 +86,7 @@ const onChange = async (e: Event) => {
const files = (e.target as HTMLInputElement).files
if (!files) return
const file = files[0]
let isLtTenM = file.size / 1024 / 1024 < 100;
const isLtTenM = file.size / 1024 / 1024 < 100;
if (!isLtTenM) {
ElMessage.error("上传文件大小不能超过 200MB!");
return isLtTenM;
......@@ -146,7 +145,7 @@ const filename = (path: string) => {
}
const downloadFile = (item: FileItem) => {
window.open(getFilePath() + item.path)
window.open(item.path)
}
const removeFile = (i: number) => {
files.value.splice(i, 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment