Преглед на файлове

fix: 阻止污染platform

bill преди 3 седмици
родител
ревизия
502171ec16
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 * as platform from "./enter-shared";
 import { asyncTimeout } from "@/utils/shared";
 import { asyncTimeout } from "@/utils/shared";
 
 
-window.platform = platform;
+window.platform = { ...platform };
 
 
 // 场景码+楼层 转绘图id
 // 场景码+楼层 转绘图id
 const sceneTransform = async (m: string, subGroup: string = "0") => {
 const sceneTransform = async (m: string, subGroup: string = "0") => {