tremble 3 jaren geleden
bovenliggende
commit
be352a3aa2
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 3 3
      src/components/RTC/PageRtcLive.vue
  2. 1 1
      src/components/RTC/index.vue

+ 3 - 3
src/components/RTC/PageRtcLive.vue

@@ -418,7 +418,7 @@ const onGetOuT = (data) => {
 const startFollow = (app) => {
   app.Connect.follow.start({ follow: role.value == "customer" });
 
-  store.commit("rtc/setUserId", browser.getURLParam("userId") || `user_${role.value}_${Math.floor(Math.random() * 100000000)}`);
+  store.commit("rtc/setUserId", browser.getURLParam("vruserId") || `user_${role.value}_${Math.floor(Math.random() * 100000000)}`);
   store.commit("rtc/setRoomId", browser.getURLParam("roomId") || Math.floor(Math.random() * 100000000));
 
   socket.value.on("connect", () => {
@@ -483,14 +483,14 @@ const startFollow = (app) => {
           val: user_info.value.RoomId,
         },
         {
-          key: "userId",
+          key: "vruserId",
           val: user_info.value.UserId,
         },
       ]);
     } else {
       tmp = getUrl(window.location.href, [
         {
-          key: "userId",
+          key: "vruserId",
           val: user_info.value.UserId,
         },
       ]);

+ 1 - 1
src/components/RTC/index.vue

@@ -56,7 +56,7 @@ const confirmDialog = async () => {
 
   
   let tempUrl = window.location.href;
-  ["mode", "name", "role", "roomId", "userId"].forEach((item) => {
+  ["mode", "name", "role", "roomId", "vruserId"].forEach((item) => {
     tempUrl = browser.replaceQueryString(tempUrl, item, "");
   });
   history.replaceState(null, null, tempUrl);