浏览代码

fix: 修复首页跳转bug

曾坤森 2 周之前
父节点
当前提交
0beacccfdf
共有 3 个文件被更改,包括 4 次插入2 次删除
  1. 1 0
      src/api/home.ts
  2. 1 1
      src/assets/style/global.less
  3. 2 1
      src/views/home/list/index.vue

+ 1 - 0
src/api/home.ts

@@ -8,6 +8,7 @@ export interface Data {
   status: number;
   time: string;
   data: string;
+  routeInfoId?: number | null;
 }
 
 export interface Tree {

+ 1 - 1
src/assets/style/global.less

@@ -75,7 +75,7 @@ body {
 }
 
 .general-card {
-  border: none;
+  border: none !important;
   border-radius: 4px;
 
   & > .arco-card-header {

+ 2 - 1
src/views/home/list/index.vue

@@ -198,7 +198,8 @@ const obj = useStorage<StationKey>(STATIONKEY, {
   station: null,
 });
 const handleToDevice = (folder: Data) => {
-  obj.value.id = folder.id;
+  console.log('ddd', folder);
+  obj.value.id = folder.routeInfoId;
   obj.value.station = folder.station;
   router.push({ name: 'DeviceStatus' });
 };