优化文件存储
This commit is contained in:
parent
69aebfd039
commit
27870f5f62
@ -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) : ''
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user