src/views/operate/sms/smsTemplate/createTemplate/index.vue
@@ -73,6 +73,9 @@ colList: [{ id: 1, columnName: "验证码模板"}, {id: 2, columnName: "活动模板"}], } }, mounted(){ this.$refs.edit.editor.txt.html(this.role.body) }, created() { if (this.tableRowData) { this.role = deepClone(this.tableRowData); @@ -87,8 +90,8 @@ methods: { // 新建/保存消息(1:新建,0保存消息) handleSubmit() { this.role.body = this.$refs.edit.editor.txt.html(); this.$refs.user.validate((valid) => { this.role.body = this.$refs.edit.editor.txt.html(); if (valid) { if (this.dialogType === 'create') { SMS.addNewSMSTemplate(this.role)