liqianyi vor 2 Jahren
Ursprung
Commit
503ba7601d
1 geänderte Dateien mit 2 neuen und 5 gelöschten Zeilen
  1. 2 5
      src/views/common/login.vue

+ 2 - 5
src/views/common/login.vue

@@ -62,18 +62,16 @@
             { required: true, message: '验证码不能为空', trigger: 'blur' }
           ]
         },
-        captchaPath: '',
-        loading: false
+        captchaPath: ''
       }
     },
     created () {
-      console.log('login')
+      // console.log('login')
       // this.getCaptcha()
     },
     methods: {
       // 提交表单
       dataFormSubmit () {
-        this.loading = true
         this.$refs['dataForm'].validate((valid) => {
           if (valid) {
             this.$http({
@@ -89,7 +87,6 @@
                 this.$cookie.set('token', data.data.access_token)
                 this.$router.replace({ name: 'home' })
               } else {
-                this.loading = false
                 // this.getCaptcha()
                 this.$message.error(data.msg)
               }