Преглед изворни кода

父窗口的统治方法改了

任一存 пре 2 година
родитељ
комит
48641d1283
1 измењених фајлова са 2 додато и 4 уклоњено
  1. 2 4
      game/src/api.js

+ 2 - 4
game/src/api.js

@@ -293,8 +293,6 @@ export async function redeem(description, name, phone, prizeId, score) {
 }
 
 export function notifyQuit() {
-  window.parent?.postMessage({
-    frome: 'game',
-    message: 'quit',
-  }, '*')
+  console.log('小游戏:调用父窗口的goBackSceneFu方法……')
+  window.parent?.goBackSceneFu()
 }