瀏覽代碼

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

panqiuyao 8 月之前
父節點
當前提交
8b6c958ebb
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      frontend/src/stores/modules/check.ts
  2. 1 1
      frontend/src/stores/modules/user.ts

+ 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);