From 1929087e9cc0d84be47c774a47ba299620024e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=AD=A6=E5=9D=A4?= <1107410514@qq.com> Date: Tue, 12 Nov 2019 18:14:10 +0800 Subject: [PATCH] kun 19 1112 18:14 --- src/components/RichTextOne.vue | 10 +++++----- src/views/project/Application.vue | 4 +++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/RichTextOne.vue b/src/components/RichTextOne.vue index 2c49225..a432f85 100644 --- a/src/components/RichTextOne.vue +++ b/src/components/RichTextOne.vue @@ -10,7 +10,7 @@ var phoneEditor, _this export default { components: {}, props: { - initialText: { + initialTextVal: { type: String, required: false } @@ -18,7 +18,7 @@ export default { data () { return {} }, - created () { }, + created () {}, mounted () { _this = this phoneEditor = new E('websiteEditorElem') @@ -32,15 +32,15 @@ export default { methods: {}, computed: {}, watch: { - initialText (val) { + initialTextVal (val) { // console.log(val) - phoneEditor.$txt.html(_this.initialText) + phoneEditor.$txt.html(_this.initialTextVal) } } } -