上传组件调整

This commit is contained in:
aixianling
2022-02-25 17:21:21 +08:00
parent 2bff4ceefc
commit ff5ae8884c

View File

@@ -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])