优化文件存储

This commit is contained in:
不做码农 2022-05-28 16:17:58 +08:00
parent 69aebfd039
commit 27870f5f62
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ function listToString(list, separator) {
separator = separator || ',' separator = separator || ','
for (let i in list) { for (let i in list) {
if (undefined !== list[i].url && list[i].url.indexOf('blob:') !== 0) { if (undefined !== list[i].url && list[i].url.indexOf('blob:') !== 0) {
strs += list[i].url.replace(baseUrl, '') + separator strs += list[i].url + separator
} }
} }
return strs != '' ? strs.substr(0, strs.length - 1) : '' return strs != '' ? strs.substr(0, strs.length - 1) : ''

View File

@ -273,7 +273,7 @@ function reset() {
form.value = { form.value = {
fileName: '', fileName: '',
fileUrl: '', fileUrl: '',
storePath: 'uploads', storePath: '',
fileSize: 0, fileSize: 0,
fileExt: '', fileExt: '',
storeType: 1, storeType: 1,