Quellcode durchsuchen

fix: 阻止污染platform

bill vor 3 Wochen
Ursprung
Commit
502171ec16
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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") => {