优化
This commit is contained in:
@@ -159,6 +159,10 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
confirm () {
|
confirm () {
|
||||||
|
if (!this.content) {
|
||||||
|
return this.$toast('文本不能为空')
|
||||||
|
}
|
||||||
|
|
||||||
if (this.currIndex >= 0) {
|
if (this.currIndex >= 0) {
|
||||||
this.richList[this.currIndex].value = this.content
|
this.richList[this.currIndex].value = this.content
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -168,6 +168,10 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
confirm () {
|
confirm () {
|
||||||
|
if (!this.content) {
|
||||||
|
return this.$toast('文本不能为空')
|
||||||
|
}
|
||||||
|
|
||||||
if (this.currIndex >= 0) {
|
if (this.currIndex >= 0) {
|
||||||
this.richList[this.currIndex].value = this.content
|
this.richList[this.currIndex].value = this.content
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -188,6 +188,10 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
confirm () {
|
confirm () {
|
||||||
|
if (!this.content) {
|
||||||
|
return this.$toast('文本不能为空')
|
||||||
|
}
|
||||||
|
|
||||||
if (this.currIndex >= 0) {
|
if (this.currIndex >= 0) {
|
||||||
this.richList[this.currIndex].value = this.content
|
this.richList[this.currIndex].value = this.content
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -159,6 +159,10 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
confirm () {
|
confirm () {
|
||||||
|
if (!this.content) {
|
||||||
|
return this.$toast('文本不能为空')
|
||||||
|
}
|
||||||
|
|
||||||
if (this.currIndex >= 0) {
|
if (this.currIndex >= 0) {
|
||||||
this.richList[this.currIndex].value = this.content
|
this.richList[this.currIndex].value = this.content
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user