Browse Source

修复模型打不开的bug

liwei 1 năm trước cách đây
mục cha
commit
df076ae633

+ 4 - 0
src/dict/apis.ts

@@ -7,6 +7,10 @@ const treeVersion = "/tree/v1";
 const _params = new URLSearchParams(decodeURIComponent(location.search))
 const base =  _params.get("base") || ""
 const user =  _params.get("user") || ""
+
+//@ts-ignore
+window.noObsCdn = true;
+
 console.log("base=>",base, user);
 
 const Dict_Apis = {

+ 1 - 2
src/pages/editor/index.ts

@@ -6,8 +6,7 @@ import router from "./router";
 import { initResource } from "@/modules/resource";
 
 document.title = "推广编辑器"
-//@ts-ignore
-window.noObsCdn = true;
+
 startApp(router, [initAuthDef, initRemSize, initResource], (app) => {
   app.use(CKEditor);
 });

+ 1 - 1
src/pages/website/CreateMat/components/TreePanel/index.tsx

@@ -119,7 +119,7 @@ export default defineComponent({
                     onClick={clickMesh}
                   />
                   <div class="grid gap-y-10px pt-10px pl-10px">
-                    {record.children.map((item: any) => (
+                    {record.children?.map((item: any) => (
                       <MatItem
                         key={item.id}
                         record={item}