29996
This commit is contained in:
@@ -164,18 +164,20 @@
|
||||
},
|
||||
|
||||
confirm () {
|
||||
if (!this.content) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (this.currIndex >= 0) {
|
||||
this.richList[this.currIndex].value = this.content
|
||||
if (!this.content) {
|
||||
this.richList.splice(this.currIndex, 1)
|
||||
} else {
|
||||
this.richList[this.currIndex].value = this.content
|
||||
}
|
||||
} else {
|
||||
if (this.content) {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
this.isShowText = false
|
||||
this.content = ''
|
||||
|
||||
@@ -174,18 +174,20 @@
|
||||
},
|
||||
|
||||
confirm () {
|
||||
if (!this.content) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (this.currIndex >= 0) {
|
||||
this.richList[this.currIndex].value = this.content
|
||||
if (!this.content) {
|
||||
this.richList.splice(this.currIndex, 1)
|
||||
} else {
|
||||
this.richList[this.currIndex].value = this.content
|
||||
}
|
||||
} else {
|
||||
if (this.content) {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
this.isShowText = false
|
||||
this.content = ''
|
||||
|
||||
@@ -195,18 +195,20 @@
|
||||
},
|
||||
|
||||
confirm () {
|
||||
if (!this.content) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (this.currIndex >= 0) {
|
||||
this.richList[this.currIndex].value = this.content
|
||||
if (!this.content) {
|
||||
this.richList.splice(this.currIndex, 1)
|
||||
} else {
|
||||
this.richList[this.currIndex].value = this.content
|
||||
}
|
||||
} else {
|
||||
if (this.content) {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
this.isShowText = false
|
||||
this.content = ''
|
||||
|
||||
@@ -165,18 +165,20 @@
|
||||
},
|
||||
|
||||
confirm () {
|
||||
if (!this.content) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (this.currIndex >= 0) {
|
||||
this.richList[this.currIndex].value = this.content
|
||||
if (!this.content) {
|
||||
this.richList.splice(this.currIndex, 1)
|
||||
} else {
|
||||
this.richList[this.currIndex].value = this.content
|
||||
}
|
||||
} else {
|
||||
if (this.content) {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
this.isShowText = false
|
||||
this.content = ''
|
||||
|
||||
Reference in New Issue
Block a user