2 Commits e7aadad05f ... 2a7ac7feb0

Autore SHA1 Messaggio Data
  tangning 2a7ac7feb0 1 1 settimana fa
  tangning 6aa5ac150c 非空 1 settimana fa
3 ha cambiato i file con 10 aggiunte e 5 eliminazioni
  1. 1 1
      .env
  2. 7 2
      src/api/tagging-style.ts
  3. 2 2
      vite.config.ts

+ 1 - 1
.env

@@ -1,4 +1,4 @@
-VITE_LASER_HOST=https://test-mix3d.4dkankan.com
+VITE_LASER_HOST=https://mix3d.4dkankan.com
 VITE_LASER_OSS=https://laser-oss.4dkankan.com
 VITE_LASER_OSS=https://laser-oss.4dkankan.com
 VITE_OSS=
 VITE_OSS=
 VITE_PANO_OSS=https://4dkk.4dage.com
 VITE_PANO_OSS=https://4dkk.4dage.com

+ 7 - 2
src/api/tagging-style.ts

@@ -122,10 +122,15 @@ export const fetchTaggingStyles = async () => {
       }
       }
     }
     }
   };
   };
-  const tree: any = { children: [] };
+  let tree: any = { children: [] };
+  console.log('tree', tree)
   genTree(treeData, tree);
   genTree(treeData, tree);
   styleTypes.length = 0
   styleTypes.length = 0
-  styleTypes.push(...tree.children)
+  console.log('tree', tree)
+  if(!tree.children){
+    tree = { children: [] }
+  }
+  tree.children && styleTypes.push(...tree.children)
   Object.assign(defStyleType, tree.children[tree.children.length - 1])
   Object.assign(defStyleType, tree.children[tree.children.length - 1])
   
   
   console.error('StyleT', styleTypes)
   console.error('StyleT', styleTypes)

+ 2 - 2
vite.config.ts

@@ -8,7 +8,7 @@ import { resolve } from 'path'
 // const oss = `https://phx.4dkankan.com/`
 // const oss = `https://phx.4dkankan.com/`
 // const ip = `https://phx.4dkankan.com/`
 // const ip = `https://phx.4dkankan.com/`
 const oss = `https://4dkk.4dage.com/`
 const oss = `https://4dkk.4dage.com/`
-const ip = `https://test-mix3d.4dkankan.com/`
+const ip = `https://mix3d.4dkankan.com/`
 
 
 const proxy = {
 const proxy = {
   '/offlineData': {
   '/offlineData': {
@@ -17,7 +17,7 @@ const proxy = {
     rewrite: path => path.replace(/^\/offlineData/, '')
     rewrite: path => path.replace(/^\/offlineData/, '')
   },
   },
   '/fusion/ws': {
   '/fusion/ws': {
-    target: 'wss://test-mix3d.4dkankan.com/',
+    target: 'wss://mix3d.4dkankan.com/',
     ws: true,
     ws: true,
     rewriteWsOrigin: true,
     rewriteWsOrigin: true,
   },
   },