Mini Program (mpvue) login to submit the password, on the real machine, always get the last password (everything is normal in the development environment. Why is that?

  1. such as title;
  2. The
  3. 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
                            }) => {

                    })
  1. 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?
Oct.13,2021
Menu