Your Name 3 lat temu
rodzic
commit
085e7c84ab
2 zmienionych plików z 10 dodań i 4 usunięć
  1. 1 1
      public/js/common.js
  2. 9 3
      src/layout/BaseLayout/index.tsx

+ 1 - 1
public/js/common.js

@@ -1,5 +1,5 @@
 var setting = {
 var setting = {
-    username: "huashe1",
+    username: "huashe3",
     password: "huashe123",
     password: "huashe123",
     ip: "10.55.134.3",
     ip: "10.55.134.3",
     host: "http",
     host: "http",

+ 9 - 3
src/layout/BaseLayout/index.tsx

@@ -270,12 +270,18 @@ export default defineComponent({
 
 
        if(window.theSocket){
        if(window.theSocket){
          if(window.metting){
          if(window.metting){
-          cremetting();
+          setTimeout(() => {
+            cremetting();
+            
+          }, 1000);
          }else{
          }else{
           const meeting = new Meeting();
           const meeting = new Meeting();
           meeting.settargetId("vPlayArea");
           meeting.settargetId("vPlayArea");
           window.metting = meeting;
           window.metting = meeting;
-          cremetting();
+          setTimeout(() => {
+            cremetting();
+            
+          }, 1000);
          }
          }
         
         
        }else{
        }else{
@@ -304,7 +310,7 @@ export default defineComponent({
 
 
          async function dothing(){
          async function dothing(){
             await window.metting.getLocalUserInfo();
             await window.metting.getLocalUserInfo();
-          const res = await window.metting.queryUser("5269853761765376");
+          const res = await window.metting.queryUser(window.metting.inviteSelf.userId);
 
 
           // _this.localUserInfo.masterName = res.userName;
           // _this.localUserInfo.masterName = res.userName;
           // _this.localUserInfo.masterId = res.userCode;
           // _this.localUserInfo.masterId = res.userCode;