diff --git a/frontend/src/components/canvas/components/Editor/Preview.vue b/frontend/src/components/canvas/components/Editor/Preview.vue index 9a57c62d50..ea0b1fa68a 100644 --- a/frontend/src/components/canvas/components/Editor/Preview.vue +++ b/frontend/src/components/canvas/components/Editor/Preview.vue @@ -229,7 +229,6 @@ export default { }, methods: { _isMobile() { - console.log('navigator.userAgent:' + navigator.userAgent) const flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i) this.terminal = flag ? 'mobile' : 'pc' // this.terminal = 'mobile' @@ -311,7 +310,7 @@ export default { } }, handleMouseDown() { - this.$store.commit('setClickComponentStatus', fals) + this.$store.commit('setClickComponentStatus', false) }, initMobileCanvas() { this.$store.commit('openMobileLayout') diff --git a/frontend/src/components/canvas/custom-component/VText.vue b/frontend/src/components/canvas/custom-component/VText.vue index 596d88026b..b5847d6843 100644 --- a/frontend/src/components/canvas/custom-component/VText.vue +++ b/frontend/src/components/canvas/custom-component/VText.vue @@ -15,7 +15,16 @@ @input="handleInput" v-html="element.propValue" /> -
+
@@ -75,6 +84,7 @@ export default { }, methods: { handleInput(e) { + this.$store.state.styleChangeTimes++ this.$emit('input', this.element, e.target.innerHTML) this.$store.commit('recordStyleChange') },