bill 5 days ago
parent
commit
da8cd16151
2 changed files with 17 additions and 17 deletions
  1. 1 1
      profile/.env.jmdev
  2. 16 16
      src/example/fuse/views/overview/header.vue

+ 1 - 1
profile/.env.jmdev

@@ -13,7 +13,7 @@ VITE_MESH_API='/meshAPI/'
 VITE_CLOUD_API='/cloudAPI/'
 VITE_FUSE_API='/fuseAPI/'
 
-VITE_MESH_VIEW='./static/kankan.html?m={m}&lang=zh&token={token}&host=https://survey.4dkankan.com/'
+VITE_MESH_VIEW='./static/kankan.html?m={m}&lang=zh&token={token}&host=http://192.168.0.125:1804'
 VITE_CLOUD_VIEW='https://survey.4dkankan.com/swss/index.html?m={m}&lang=zh&token={token}'
 VITE_FUSE_VIEW='https://survey.4dkankan.com/code/'
 VITE_LOGIN_VIEW='https://survey.4dkankan.com/admin/index.html#/login?redirect={redirect}'

+ 16 - 16
src/example/fuse/views/overview/header.vue

@@ -50,7 +50,7 @@ const emit = defineEmits<{
   (e: "saveAfter"): void;
 }>();
 
-const showTabulation = !window.platform.sceneDraw;
+const showTabulation = !params.value.sceneDraw;
 const baseActions = getHeaderActions(draw);
 const actions = [
   [baseActions.undo, baseActions.redo],
@@ -151,21 +151,21 @@ const setViewToTableCover = async () => {
   await nextTick();
 
   const syncItems: TabCover["syncItems"] = [];
-  const positionRect = getRect("formal")!;
-  draw.store.items.forEach((item) => {
-    if (item.key === "trace") {
-      const itemRect = getRect(item.id);
-      if (itemRect) {
-        itemRect.x = itemRect.x - positionRect.x;
-        itemRect.y = itemRect.y - positionRect.y;
-        syncItems.push({
-          ...item,
-          rect: itemRect,
-          desc: (item as any).name || "",
-        } as any);
-      }
-    }
-  });
+  // const positionRect = getRect("formal")!;
+  // draw.store.items.forEach((item) => {
+  //   if (item.key === "trace") {
+  //     const itemRect = getRect(item.id);
+  //     if (itemRect) {
+  //       itemRect.x = itemRect.x - positionRect.x;
+  //       itemRect.y = itemRect.y - positionRect.y;
+  //       syncItems.push({
+  //         ...item,
+  //         rect: itemRect,
+  //         desc: (item as any).name || "",
+  //       } as any);
+  //     }
+  //   }
+  // });
 
   return [
     {