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