bill 2 달 전
부모
커밋
7208d24461
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/sdk/association/animation.ts
  2. 6 0
      vite.config.ts

+ 2 - 1
src/sdk/association/animation.ts

@@ -33,7 +33,7 @@ import { Size } from "@/components/drawing/dec";
 import router, { RoutesName } from "@/router";
 import { isEdit, isTemploraryID, paths } from "@/store";
 import { Color } from "three";
-import { custom, showAMsStack } from "@/env";
+import { custom, getResource, showAMsStack } from "@/env";
 
 export let animationGroup: AnimationGroup;
 export const getAMKey = (am: AnimationModel) => am.key || am.id;
@@ -76,6 +76,7 @@ export const addAM = (data: AnimationModel): Promise<AnimationModel3D> => {
         };
         const am = animationGroup.addAnimationModel({
           ...data,
+          url: getResource(data.url),
           quaAtPath: data.mat?.quaAtPath,
         });
         am.bus.on("loadDone", () => {

+ 6 - 0
vite.config.ts

@@ -26,6 +26,12 @@ const proxy = {
     ws: true,
     rewriteWsOrigin: true,
   },
+  "/profile": {
+
+    target: "http://192.168.9.165:9008/",
+    changeOrigin: true,
+    rewrite: (path) => path.replace(/^\/profile/, "/profile"),
+  },
   "/local": {
     target: "http://192.168.9.165:9008/",
     changeOrigin: true,