From 39deacb5b4eadaf47367e8a763524e22f3b21c8d Mon Sep 17 00:00:00 2001 From: congzc Date: Thu, 18 May 2023 18:08:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=95=E9=83=A8=E8=A1=A8=E5=8D=95=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/tail.vue | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/components/common/tail.vue b/src/components/common/tail.vue index 893e8f1..61f32a1 100644 --- a/src/components/common/tail.vue +++ b/src/components/common/tail.vue @@ -33,7 +33,7 @@
{{ characters == 1 ? '提交' : 'Submit' }}
--> - + @@ -195,7 +195,9 @@ export default { } } ] - } + }, + rules1: null, + showForm: true }; }, methods: { @@ -248,10 +250,27 @@ export default { }); } }, + created() { + this.rules1 = this.rules; + }, computed: { ...mapState({ characters: state => state.publicObj.characters }) + }, + + watch: { + characters: function (newValue) { + this.showForm = false; + if (newValue === 1) { + this.rules1 = this.rules; + } else { + this.rules1 = this.rulesEnglish; + } + setTimeout(() => { + this.showForm = true; + }, 100); + } } };