Browse Source

no message

xiaoxin 2 years ago
parent
commit
71be840630
2 changed files with 4 additions and 3 deletions
  1. 1 0
      src/utils/request.ts
  2. 3 3
      src/views/more.vue

+ 1 - 0
src/utils/request.ts

@@ -65,6 +65,7 @@ request.interceptors.response.use(
         break;
       case 500:
         msg = "服务器出现问题";
+        return;
         break;
       default:
         msg = "无网络";

+ 3 - 3
src/views/more.vue

@@ -77,7 +77,7 @@ onMounted(() => {
 onUnmounted(() => {
   if (currentD.value) {
     // 关流请求
-    stopVideo();
+    stopVideo2();
   }
 });
 
@@ -92,7 +92,7 @@ const getVideoList = async () => {
 const handleNodeClick = (data: any) => {
   if (currentD.value) {
     // 关流请求
-    stopVideo();
+    stopVideo2();
   }
   // console.log(data);
   if (data.d) {
@@ -116,7 +116,7 @@ const startVideo = async (d: string = currentD.value) => {
 };
 
 // 关流请求
-const stopVideo = async () => {
+const stopVideo2 = async () => {
   await reqVideoStop({
     d: currentD.value,
     nowLine: "1",