Browse Source

Merge remote-tracking branch 'origin/dev-frontend'

panqiuyao 8 tháng trước cách đây
mục cha
commit
8b6c958ebb

+ 2 - 2
frontend/src/stores/modules/check.ts

@@ -11,7 +11,7 @@ export const checkInfo = defineStore('checkInfo', () => {
 
     // 定义设备列表
     const devices = reactive({
-/*        mcu: {
+        mcu: {
             status: 0,
             msg_type: "connect_mcu",
             msg: "未连接",
@@ -20,7 +20,7 @@ export const checkInfo = defineStore('checkInfo', () => {
             status: 0,
             msg_type: "connect_bluetooth",
             msg: "未连接",
-        },*/
+        },
         cam_control: {
             status: 0,
             msg_type: "cam_control",

+ 1 - 1
frontend/src/stores/modules/user.ts

@@ -52,7 +52,7 @@ export const useUserInfo = defineStore('userInfo', () => {
     try {
       const res = await login(data); // 调用登录接口
       await updateToken(res.data.token); // 更新登录令牌
-      await getInfo(); // 获取用户信息
+   //   await getInfo(); // 获取用户信息
       return res;
     } catch (error) {
       console.error('登录失败:', error);