From fa1bd95d533444d7360d1ada127b7a3279a3901f Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Fri, 26 Aug 2022 18:43:56 +0800 Subject: [PATCH] 新增图组等上传支持 新增编辑页 --- src/components/common/OwO.vue | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/common/OwO.vue b/src/components/common/OwO.vue index 54f5e34..08e7f24 100644 --- a/src/components/common/OwO.vue +++ b/src/components/common/OwO.vue @@ -5,7 +5,7 @@ class="OwO-textarea" /> </a-form-item> <span class="myTip fadeIn" v-if="showTip">现在你可以发送表情啦</span> - <div ref="container" class="OwO fadeIn" v-show="init || visitorContent.length>0"></div> + <div ref="container" class="OwO fadeIn" v-show="init"></div> </div> </template> @@ -28,19 +28,20 @@ watch: { visitorContent: function(newValue, oldValue) { if (newValue.length > 0) { - this.init = true; - this.initOwO(); - if (!this.showTip) { + if (!this.init) { this.showTip = true; setTimeout(() => { this.showTip = false; }, 5000); } + this.init = true; + this.initOwO(); } this.$emit("update:content", newValue) }, }, methods: { + initOwO() { var OwO_demo = new OwO({ logo: 'OωO表情', -- Gitblit v1.9.1