|
@@ -16,11 +16,6 @@ App<IAppOption>({
|
|
|
// logs.unshift(Date.now())
|
|
|
// wx.setStorageSync('logs', logs)
|
|
|
|
|
|
- wx.showLoading({
|
|
|
- mask: true,
|
|
|
- title: "加载中...",
|
|
|
- });
|
|
|
-
|
|
|
this.setAppId();
|
|
|
|
|
|
// 登录
|
|
@@ -48,6 +43,10 @@ App<IAppOption>({
|
|
|
// }
|
|
|
/** 微信登录 */
|
|
|
async onLogin(code: string) {
|
|
|
+ wx.showLoading({
|
|
|
+ mask: true,
|
|
|
+ title: "加载中...",
|
|
|
+ });
|
|
|
try {
|
|
|
// 开始登录
|
|
|
const { data } = await api_login({
|