29996
This commit is contained in:
@@ -164,17 +164,19 @@
|
||||
},
|
||||
|
||||
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 {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
if (this.content) {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
this.isShowText = false
|
||||
|
||||
@@ -174,17 +174,19 @@
|
||||
},
|
||||
|
||||
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 {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
if (this.content) {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
this.isShowText = false
|
||||
|
||||
@@ -195,17 +195,19 @@
|
||||
},
|
||||
|
||||
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 {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
if (this.content) {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
this.isShowText = false
|
||||
|
||||
@@ -165,17 +165,19 @@
|
||||
},
|
||||
|
||||
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 {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
if (this.content) {
|
||||
this.richList.push({
|
||||
type: 'text',
|
||||
value: this.content
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
this.isShowText = false
|
||||
|
||||
Reference in New Issue
Block a user