Explorar el Código

登录也修改

chuwuya hace 2 años
padre
commit
d017619ee6
Se han modificado 1 ficheros con 0 adiciones y 36 borrados
  1. 0 36
      src/views/login/index.vue

+ 0 - 36
src/views/login/index.vue

@@ -119,43 +119,12 @@ export default {
     //     }
     // },
     methods: {
-<<<<<<< HEAD
         //登录验证
-=======
-        // handleLogin() {
-        //     if (this.loginForm.vertification.toLowerCase() != this.identifyCode.toLowerCase()) {
-        //         this.$message.error('请输入正确的验证码!');
-        //         this.refreshCode();
-        //     } else {
-        //         this.$refs.loginForm.validate(valid => {
-        //             if (valid) {
-        //                 this.loading = true;
-        //                 this.$store.dispatch('/user/login', this.loginForm).then((res) => {
-        //                     if (res.data.code == 200) {
-        //                         let Authorization = res.data.token;
-        //                         localStorage.setItem('Authorization', Authorization);
-        //                         this.$message.success('登录成功');
-        //                         this.$router.push({ path: '/home' });
-        //                         this.loading = false;
-        //                     } else {
-        //                         this.$message.error(res.data.message);
-        //                     }
-        //                 }).catch(() => {
-        //                     this.loading = false;
-        //                 })
-        //             } else {
-        //                 return false;
-        //             }
-        //         })
-        //     }
-        // },
->>>>>>> f2592fbd23bf8a79deef6b89beed89927235991e
         handleLogin() {
             if (this.loginForm.vertification.toLowerCase() != this.identifyCode.toLowerCase()) {
                 this.$message.error('请输入正确的验证码!');
                 this.refreshCode();
             } else {
-<<<<<<< HEAD
                 this.$refs.loginForm.validate(valid => {
                     if (valid) {
                         this.loading = true;
@@ -174,11 +143,6 @@ export default {
                         return false;
                     }
                 })
-=======
-                if (this.loginForm.username === 'user001' && this.loginForm.password === '123456') {
-                    this.$router.push('/home');
-                }
->>>>>>> f2592fbd23bf8a79deef6b89beed89927235991e
             }
         },
         //验证码刷新