Browse Source

fix: register password tip show err

Sendya 4 years ago
parent
commit
4f7f96f0d6
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/user/Register.vue

+ 3 - 2
src/views/user/Register.vue

@@ -96,6 +96,7 @@
 
 <script>
 import { getSmsCaptcha } from '@/api/login'
+import { deviceMixin } from '@/store/device-mixin'
 
 const levelNames = {
   0: '低',
@@ -119,7 +120,7 @@ export default {
   name: 'Register',
   components: {
   },
-  mixins: [],
+  mixins: [deviceMixin],
   data () {
     return {
       form: this.$form.createForm(this),
@@ -198,7 +199,7 @@ export default {
     },
 
     handlePasswordInputClick () {
-      if (!this.isMobile()) {
+      if (!this.isMobile) {
         this.state.passwordLevelChecked = true
         return
       }