- such as title;
The - code is as follows:
html:
<input type="password" v-model.lazy="form.password" placeholder-class="login-ph" placeholder="" />
<div class="tbtn" @click="submitFormData(form)"></div>
data:
data() {
return {
src: "../../static/img/logo.png",
loginBg: loginBgImg,
form: {
email: "",
password: "",
},
}
},
method:
wx.showToast({
title: "",
icon: "loading",
duration: 500,
mask: true
});
this.$fetch.api_user.login(form)
.then(({
data,
}) => {
this.set_user_info({
user: data.user_info,
login: true,
token: data.token,
})
wx.switchTab({
url: "/pages/me/index",
})
})
.catch(({
msg
}) => {
})
- develop tests on pc without any problems. If you log in with a mobile phone, you always get the last input password, how to break it?