ソースを参照

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 { asyncTimeout } from "@/utils/shared";
 
-window.platform = platform;
+window.platform = { ...platform };
 
 // 场景码+楼层 转绘图id
 const sceneTransform = async (m: string, subGroup: string = "0") => {