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);
+ }
}
};