Commit 84714eae authored by 张九刚's avatar 张九刚

Merge branch 'feature/20250617home_md' of...

Merge branch 'feature/20250617home_md' of gitlab2.dui88.com:sparkprojects/20250528_FHQ1 into feature/20250617home_md
parents 4786defb de9d2234
......@@ -22,7 +22,7 @@ const init = (SENSORS_URL) => {
enableVue3MpClick();
sensors.init();
// sensors.init();
};
const login = (ext) => {
......
......@@ -10,6 +10,7 @@ import {
} from "../api/user.js";
import { useGlobalStore } from "./global.js";
import { useHomeStore } from "./home.js";
import md from "../md.js";
const globalStore = useGlobalStore();
......@@ -158,16 +159,18 @@ export const useUserStore = defineStore("userInfo", {
async wxAutoLogin() {
uni.login({
provider: "weixin",
success: (res) => {
success: async(res) => {
console.log("wxAutoLogin", res);
if (res.errMsg === "login:ok") {
this.autoLoginByCode(res.code);
await this.autoLoginByCode(res.code);
} else {
uni.showToast({
title: res.errMsg,
icon: "error",
});
}
md.sensors.init();
},
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment