From ec81602e447c561e1f36c8cd86fa8e7a32b21fad Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Mon, 11 Mar 2024 10:08:12 +0800 Subject: [PATCH] x --- src/views/login.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 2608b90..2298e0b 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -105,7 +105,7 @@ const loginType = ref(1); // 登录要传输的信息 const loginInfo = ref({ - tel: "", + username: "", password: "", code: "", }); @@ -118,7 +118,7 @@ const watchValidate = (e1) => { }; const submitInfo = (e) => { - console.log(e); + console.log(loginInfo.value.password); let obj = e; // if (loginType.value == 2) { // obj.loginType = 1; @@ -126,8 +126,8 @@ const submitInfo = (e) => { // obj.loginType = 0; // } loginApi({ - password: "123456", - username: "ldd", + password: loginInfo.value.password, + username: loginInfo.value.username, }) .then((res) => { console.log(res);