Renxy 1 年之前
父節點
當前提交
31ddf62507
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/utils/utils.js

+ 3 - 0
src/utils/utils.js

@@ -145,11 +145,14 @@ export const UnityAction = {
     }
   },
 };
+alert(window.vuplex);
 if (window.vuplex) {
+  alert('--------');
   window.vuplex.addEventListener('message', (e) => {
     console.log(
       '============================getMessageForUnity============================',
     );
+    alert(data.message);
     const data = JSON.parse(e.data);
     console.log(data);
     UnityAction.emit(data.type, data.message);