Browse Source

fix: 阻止污染platform

bill 3 tuần trước cách đây
mục cha
commit
502171ec16
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/example/fuse/enter.ts

+ 1 - 1
src/example/fuse/enter.ts

@@ -3,7 +3,7 @@ import { params, preventReload, token } from "../env";
 import * as platform from "./enter-shared";
 import { asyncTimeout } from "@/utils/shared";
 
-window.platform = platform;
+window.platform = { ...platform };
 
 // 场景码+楼层 转绘图id
 const sceneTransform = async (m: string, subGroup: string = "0") => {