上传组件调整
This commit is contained in:
@@ -137,7 +137,7 @@ export default {
|
||||
if (res?.data) {
|
||||
this.$emit('data', res.data)
|
||||
this.$u.toast('上传成功!')
|
||||
if (this.action == '/admin/file/add') {
|
||||
if (this.action.endsWith('/file/add')) {
|
||||
this.fileList.push({url: res.data?.[0]?.split(";")?.[0], id: res.data?.[0]?.split(";")?.[1]})
|
||||
this.$emit('input', [...this.fileList])
|
||||
this.$emit('change', [...this.fileList])
|
||||
|
||||
Reference in New Issue
Block a user