瀏覽代碼

fix: 已结束房间进入404

jinx 1 年之前
父節點
當前提交
321319b56e
共有 3 個文件被更改,包括 6073 次插入24 次删除
  1. 2 1
      src/components/chatRoom/controls/join.ts
  2. 22 23
      src/components/chatRoom/dialog/base.vue
  3. 6049 0
      yarn.lock

+ 2 - 1
src/components/chatRoom/controls/join.ts

@@ -28,7 +28,8 @@ export async function handleJoin(data: any) {
   const res = await enterRoom();
   const { code } = res.data;
 
-  if (code === 4003 && !roomId.includes('temp_') && unref(isInternational)) {
+  // if (code === 4003 && !roomId.includes('temp_') && unref(isInternational)) {
+  if (code === 4003 && unref(isInternational)) {
     location.href = is404Page.value;
     return;
   }

+ 22 - 23
src/components/chatRoom/dialog/base.vue

@@ -37,6 +37,28 @@
   const okTxt = ref('');
   const closeTxt = ref('');
   const isSingle = ref(false);
+  const props = defineProps({
+    title: {
+      type: String,
+      default: '温馨提示',
+    },
+    desc: {
+      type: String,
+      default: '',
+    },
+    okTxt: {
+      type: String,
+      default: '确定',
+    },
+    closeTxt: {
+      type: String,
+      default: '取消',
+    },
+    isSingle: {
+      type: Boolean,
+      default: false,
+    },
+  });
   watch(
     () => [baseDialog, ifBaseDialog],
     (val) => {
@@ -63,29 +85,6 @@
     { deep: true },
   );
 
-  const props = defineProps({
-    title: {
-      type: String,
-      default: '温馨提示',
-    },
-    desc: {
-      type: String,
-      default: '',
-    },
-    okTxt: {
-      type: String,
-      default: '确定',
-    },
-    closeTxt: {
-      type: String,
-      default: '取消',
-    },
-    isSingle: {
-      type: Boolean,
-      default: false,
-    },
-  });
-
   const endLiveCancel = () => {
     emit('closeDialog');
 

文件差異過大導致無法顯示
+ 6049 - 0
yarn.lock