zsk 2 years ago
parent f416bd2955
commit ec81602e44

@ -105,7 +105,7 @@ const loginType = ref(1);
// //
const loginInfo = ref({ const loginInfo = ref({
tel: "", username: "",
password: "", password: "",
code: "", code: "",
}); });
@ -118,7 +118,7 @@ const watchValidate = (e1) => {
}; };
const submitInfo = (e) => { const submitInfo = (e) => {
console.log(e); console.log(loginInfo.value.password);
let obj = e; let obj = e;
// if (loginType.value == 2) { // if (loginType.value == 2) {
// obj.loginType = 1; // obj.loginType = 1;
@ -126,8 +126,8 @@ const submitInfo = (e) => {
// obj.loginType = 0; // obj.loginType = 0;
// } // }
loginApi({ loginApi({
password: "123456", password: loginInfo.value.password,
username: "ldd", username: loginInfo.value.username,
}) })
.then((res) => { .then((res) => {
console.log(res); console.log(res);

Loading…
Cancel
Save