技术标准-发布稿-删除第一个时文件名错误

This commit is contained in:
zyn
2023-06-28 14:22:41 +08:00
parent d8d28bd540
commit 4fb1ead160
4 changed files with 4 additions and 4 deletions
@@ -1136,7 +1136,7 @@
handler: function (val) {
console.log(val);
if (val && val !== '') {
if (this.FBGBUSSFileList.length > 0) {
if (this.FBGBUSSFileList.length > 0 && !this.FBGBUSSFileList[0].id.startsWith('ATT_FILE')) {
this.FBGBUSSFileList[0].name = val
}
} else {
@@ -1111,7 +1111,7 @@ export default {
handler: function (val) {
console.log(val);
if (val && val !== '') {
if (this.FBGBUSSFileList.length > 0) {
if (this.FBGBUSSFileList.length > 0 && !this.FBGBUSSFileList[0].id.startsWith('ATT_FILE')) {
this.FBGBUSSFileList[0].name = val
}
} else {
@@ -618,7 +618,7 @@
handler: function (val) {
console.log(val);
if (val && val !== '') {
if (this.FBGBUSSFileList.length > 0) {
if (this.FBGBUSSFileList.length > 0 && !this.FBGBUSSFileList[0].id.startsWith('ATT_FILE')) {
this.FBGBUSSFileList[0].name = val
}
} else {
@@ -1858,7 +1858,7 @@
handler: function (val) {
if (val && val !== '') {
this.form.FBGBUSSName = val
if (this.FBGBUSSFileList.length > 0) {
if (this.FBGBUSSFileList.length > 0 && !this.FBGBUSSFileList[0].id.startsWith('ATT_FILE')) {
this.FBGBUSSFileList[0].name = val
}
// this.FBGBUSSFileList = []