miniprogram/pages/login/login.ts
@@ -11,8 +11,7 @@ // 导入 store 对象 import { accountStore } from '@/stores/accountStore' // 导入防抖函数 import { debounce } from 'miniprogram-licia' import {STATIC_FILE_BASE_URL} from '@/config/constants' // 使用 ComponentWithStore 方法替换 Component 方法构造页面 ComponentWithStore({ @@ -26,6 +25,7 @@ activeTab: 'account', user: 'tc', password: 'a', STATIC_FILE_BASE_URL }, lifetimes: { attached() { @@ -41,7 +41,7 @@ }, // 授权登录 login: debounce(async function () { login: wx.$_.debounce(async function () { let res: any = null; switch (this.data.activeTab) {