Renxy 1 năm trước cách đây
mục cha
commit
31ddf62507
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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);