- 如题;
- 代码如下:
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
}) => {
})
- 在pc上开发测试,没有任何问题;使用手机登录,总是获取的上一次输入密码,怎么破?