Sfoglia il codice sorgente

fix: 修复已知问题

shuisheng 1 anno fa
parent
commit
96aa3d9ea7

+ 2 - 1
src/components/SystemModal/index.vue

@@ -12,8 +12,9 @@
           欢迎进入直播间,遇到问题请提<a
             href="https://github.com/galaxy-s10/billd-live/issues/new"
             target="_blank"
-            >issue</a
           >
+            issue
+          </a>
         </div>
       </n-card>
     </n-modal>

+ 35 - 9
src/constant.ts

@@ -60,17 +60,43 @@ export const COMMON_URL = {
   bilibiliCollectiondetail: `https://space.bilibili.com/381307133/channel/collectiondetail?sid=1458070&ctype=0`,
   payCoursesArticle: `https://www.${prodDomain}/article/151`,
   download: {
-    androidFlutter: `${QINIU_RESOURCE.url}/billd-live/image/app-release.apk`,
-    deskWindows: `${QINIU_RESOURCE.url}/test/billd-desk-Win-0.0.1-Installer.exe`,
-    deskMacOS: `${QINIU_RESOURCE.url}/test/billd-desk-Mac-0.0.1-Installer.dmg`,
+    live: {
+      flutter: {
+        android: `${QINIU_RESOURCE.url}/billd-live/download/billd-live-v0.0.4.apk`,
+        github: 'https://github.com/galaxy-s10/billd-live-flutter',
+      },
+      reactNative: {
+        android: '',
+        github: 'https://github.com/galaxy-s10/billd-live-react-native',
+      },
+      kotlin: {
+        android: '',
+        github: 'https://github.com/galaxy-s10/billd-live-kotlin',
+      },
+      electron: {
+        github: 'https://github.com/galaxy-s10/billd-live-electron',
+        windows: ``,
+        macOS: ``,
+      },
+    },
+    remoteDesktop: {
+      electron: {
+        windows: `${QINIU_RESOURCE.url}/test/billd-desk-Win-0.0.1-Installer.exe`,
+        github: 'https://github.com/galaxy-s10/billd-desk',
+        macOS: `${QINIU_RESOURCE.url}/test/billd-desk-Mac-0.0.1-Installer.dmg`,
+      },
+      flutter: {
+        android: ``,
+        github: 'https://github.com/galaxy-s10/billd-desk-flutter',
+      },
+    },
   },
   release: {
-    flutter: 'https://github.com/galaxy-s10/billd-live-flutter/releases',
-    kotlin: 'https://github.com/galaxy-s10/billd-live-kotlin/releases',
-    reactNative:
-      'https://github.com/galaxy-s10/billd-live-react-native/releases',
-    electron: 'https://github.com/galaxy-s10/billd-live-electron/releases',
-    desk: 'https://github.com/galaxy-s10/billd-desk/releases',
+    flutter: 'https://github.com/galaxy-s10/billd-live-flutter',
+    kotlin: 'https://github.com/galaxy-s10/billd-live-kotlin',
+    reactNative: 'https://github.com/galaxy-s10/billd-live-react-native',
+    electron: 'https://github.com/galaxy-s10/billd-live-electron',
+    desk: 'https://github.com/galaxy-s10/billd-desk',
   },
 };
 

+ 64 - 13
src/layout/pc/head/index.vue

@@ -40,16 +40,37 @@
             {{ t('layout.liveAdmin') }}
           </a>
 
-          <a
+          <Dropdown
             class="item"
             v-if="!isMobile()"
-            @click.prevent="router.push({ name: routerName.download })"
           >
-            {{ t('layout.download') }}
-            <div class="badge">
-              <div class="txt">new</div>
-            </div>
-          </a>
+            <template #btn>
+              <div class="btn">
+                <span>{{ t('layout.download') }}</span>
+                <VPIconChevronDown class="icon"></VPIconChevronDown>
+              </div>
+            </template>
+            <template #list>
+              <div class="list">
+                <a
+                  class="item"
+                  @click.prevent="
+                    router.push({ name: routerName.downloadLive })
+                  "
+                >
+                  <div class="txt">{{ t('layout.liveClient') }}</div>
+                </a>
+                <a
+                  class="item"
+                  @click.prevent="
+                    router.push({ name: routerName.downloadRemoteDesktop })
+                  "
+                >
+                  <div class="txt">{{ t('layout.remoteDesktopClient') }}</div>
+                </a>
+              </div>
+            </template>
+          </Dropdown>
 
           <a
             class="item"
@@ -629,6 +650,36 @@ function handleWebsiteJump() {
     height: $layout-head-h;
     box-shadow: inset 0 -1px #f1f2f3 !important;
     font-size: 15px;
+    .icon {
+      margin-left: 5px;
+      width: 13px;
+
+      fill: currentColor;
+    }
+    .list {
+      padding: 10px 0;
+      width: 150px;
+
+      .item {
+        display: flex;
+        align-items: center;
+        margin-bottom: 5px;
+        padding: 0 15px;
+        color: black;
+        text-decoration: none;
+        cursor: pointer;
+        &:hover {
+          color: $theme-color-gold;
+        }
+        .icon {
+          margin-left: 5px;
+          width: 13px;
+          color: #3c3c4354;
+
+          fill: currentColor;
+        }
+      }
+    }
     .badge {
       position: absolute;
       top: -10px;
@@ -731,8 +782,8 @@ function handleWebsiteJump() {
       }
 
       .list {
-        width: 150px;
         padding: 10px 0;
+        width: 150px;
 
         .item {
           display: flex;
@@ -747,7 +798,7 @@ function handleWebsiteJump() {
           }
           .icon {
             margin-left: 5px;
-            width: 14px;
+            width: 13px;
             color: #3c3c4354;
 
             fill: currentColor;
@@ -772,8 +823,8 @@ function handleWebsiteJump() {
 
       .ecosystem {
         .list {
-          width: 225px;
           padding: 10px 0;
+          width: 225px;
 
           .title {
             margin: 10px 0 5px;
@@ -820,9 +871,9 @@ function handleWebsiteJump() {
           cursor: pointer;
         }
         .list {
-          width: 180px;
           position: relative;
           padding: 10px 0;
+          width: 180px;
 
           .item {
             display: flex;
@@ -870,8 +921,8 @@ function handleWebsiteJump() {
           @extend %containBg;
         }
         .list {
-          width: 90px;
           padding: 10px 0;
+          width: 90px;
 
           .item {
             position: relative;
@@ -896,8 +947,8 @@ function handleWebsiteJump() {
           }
         }
         .list {
-          width: 80px;
           padding: 10px 0;
+          width: 80px;
 
           .item {
             display: flex;

+ 2 - 0
src/locales/en/layout.ts

@@ -6,6 +6,8 @@ export default nameSpaceWrap('layout', {
   shop: 'Shop',
   liveAdmin: 'Admin',
   download: 'Download',
+  liveClient: 'Live Client',
+  remoteDesktopClient: 'Desk Client',
   android: 'Android',
   ios: 'IOS',
   windows: 'Windows',

+ 2 - 0
src/locales/zh/layout.ts

@@ -6,6 +6,8 @@ export default nameSpaceWrap('layout', {
   shop: '商店',
   liveAdmin: '后台',
   download: '下载',
+  liveClient: '直播客户端',
+  remoteDesktopClient: '远程桌面客户端',
   android: '安卓版',
   ios: '苹果版',
   windows: 'Windows版',

+ 10 - 3
src/router/index.ts

@@ -47,6 +47,8 @@ export const routerName = {
   group: 'group',
   profile: 'profile',
   download: 'download',
+  downloadLive: 'downloadLive',
+  downloadRemoteDesktop: 'downloadRemoteDesktop',
 
   pull: 'pull',
   push: 'push',
@@ -134,9 +136,14 @@ export const defaultRoutes: RouteRecordRaw[] = [
         component: () => import('@/views/profile/index.vue'),
       },
       {
-        name: routerName.download,
-        path: '/download',
-        component: () => import('@/views/download/index.vue'),
+        name: routerName.downloadRemoteDesktop,
+        path: '/download/remoteDesktop',
+        component: () => import('@/views/download/remoteDesktop/index.vue'),
+      },
+      {
+        name: routerName.downloadLive,
+        path: '/download/live',
+        component: () => import('@/views/download/live/index.vue'),
       },
       {
         name: routerName.sponsors,

+ 0 - 213
src/views/download/index.vue

@@ -1,213 +0,0 @@
-<template>
-  <div class="download-wrap">
-    <div class="content">
-      <h1 class="title">下载</h1>
-      <div class="hr"></div>
-      <div class="list">
-        <div class="item">
-          <h2>安卓版(flutter)</h2>
-          <p>
-            最新版本:<span
-              class="link"
-              @click="openToTarget(COMMON_URL.download.androidFlutter)"
-              >v0.0.1</span
-            >
-          </p>
-          <p>
-            历史版本:<span
-              class="link"
-              @click="openToTarget(COMMON_URL.release.flutter)"
-              >查看</span
-            >
-          </p>
-        </div>
-        <div class="hr"></div>
-        <div class="item">
-          <h2>安卓版(react-native)</h2>
-          <p>最新版本:<span>todo</span></p>
-          <p>
-            历史版本:<span
-              class="link"
-              @click="openToTarget(COMMON_URL.release.reactNative)"
-              >查看</span
-            >
-          </p>
-        </div>
-        <div class="hr"></div>
-        <div class="item">
-          <h2>安卓版(kotlin)</h2>
-          <p>最新版本:<span>todo</span></p>
-          <p>
-            历史版本:<span
-              class="link"
-              @click="openToTarget(COMMON_URL.release.kotlin)"
-              >查看</span
-            >
-          </p>
-        </div>
-        <div class="hr"></div>
-        <div class="item">
-          <h2>苹果版(flutter)</h2>
-          <p>最新版本:<span>todo</span></p>
-          <p>
-            历史版本:<span
-              class="link"
-              @click="openToTarget(COMMON_URL.release.flutter)"
-              >查看</span
-            >
-          </p>
-        </div>
-        <div class="hr"></div>
-        <div class="item">
-          <h2>苹果版(react-native)</h2>
-          <p>最新版本:<span>todo</span></p>
-          <p>
-            历史版本:<span
-              class="link"
-              @click="openToTarget(COMMON_URL.release.reactNative)"
-              >查看</span
-            >
-          </p>
-        </div>
-        <div class="hr"></div>
-        <div class="item">
-          <h2>Windows版(electron)</h2>
-          <p>最新版本:<span>todo</span></p>
-          <p>
-            历史版本:<span
-              class="link"
-              @click="openToTarget(COMMON_URL.release.electron)"
-              >查看</span
-            >
-          </p>
-        </div>
-        <div class="hr"></div>
-        <div class="item">
-          <h2>macOS版(electron)</h2>
-          <p>最新版本:<span>todo</span></p>
-          <p>
-            历史版本:<span
-              class="link"
-              @click="openToTarget(COMMON_URL.release.electron)"
-              >查看</span
-            >
-          </p>
-        </div>
-        <div class="hr"></div>
-        <div class="item">
-          <h2>Linux版(electron)</h2>
-          <p>最新版本:<span>todo</span></p>
-          <p>
-            历史版本:<span
-              class="link"
-              @click="openToTarget(COMMON_URL.release.electron)"
-              >查看</span
-            >
-          </p>
-        </div>
-      </div>
-    </div>
-    <div class="aside">
-      <div class="title">本页目录</div>
-      <div class="item">安卓版(flutter)</div>
-      <div class="item">安卓版(react-native)</div>
-      <div class="item">安卓版(kotlin)</div>
-      <div class="item">苹果版(flutter)</div>
-      <div class="item">苹果版(react-native)</div>
-      <div class="item">Windows版(electron)</div>
-      <div class="item">macOS版(electron)</div>
-      <div class="item">Linux版(electron)</div>
-    </div>
-  </div>
-</template>
-
-<script lang="ts" setup>
-import { openToTarget } from 'billd-utils';
-import { onMounted, ref } from 'vue';
-
-import { fetchServerInfo } from '@/api/other';
-import { COMMON_URL } from '@/constant';
-import { IServerInfo } from '@/interface';
-
-const serverInfo = ref<IServerInfo>();
-const loading = ref(false);
-
-async function handleFetchServerInfo() {
-  try {
-    loading.value = true;
-    const res = await fetchServerInfo();
-    if (res.code === 200) {
-      serverInfo.value = res.data;
-    }
-  } catch (error) {
-    console.log(error);
-  } finally {
-    loading.value = false;
-  }
-}
-
-onMounted(() => {
-  handleFetchServerInfo();
-});
-</script>
-
-<style lang="scss" scoped>
-.download-wrap {
-  display: flex;
-  box-sizing: border-box;
-  margin: 0 auto;
-  padding-top: 50px;
-  width: 960px;
-  color: rgb(33, 53, 71);
-  .link {
-    cursor: pointer;
-    color: $theme-color-gold;
-  }
-
-  .content {
-    flex: 1;
-    .title {
-      margin: 0;
-      font-weight: 500;
-      font-size: 40px;
-      margin-bottom: 20px;
-    }
-    .hr {
-      margin: 60px 0 20px 0;
-      width: 100%;
-      height: 1px;
-      background-color: #e7e7e7;
-    }
-    .list {
-      h2 {
-        font-weight: 600;
-      }
-      .item {
-        position: relative;
-        font-size: 16px;
-      }
-    }
-  }
-
-  .aside {
-    padding-left: 90px;
-    width: 150px;
-
-    .title {
-      color: rgb(33, 53, 71);
-      font-weight: 700;
-      font-size: 12px;
-      margin-bottom: 8px;
-    }
-    .item {
-      margin-bottom: 8px;
-      color: rgba(60, 60, 60, 0.7);
-      font-size: 13px;
-      cursor: pointer;
-      &:hover {
-        color: #213547;
-      }
-    }
-  }
-}
-</style>

+ 208 - 0
src/views/download/live/index.vue

@@ -0,0 +1,208 @@
+<template>
+  <div class="download-wrap">
+    <div class="content">
+      <h1 class="title">直播客户端下载</h1>
+      <div class="hr"></div>
+      <div class="list">
+        <div class="item">
+          <h2>Flutter</h2>
+          <span>
+            代码仓库:<span
+              class="link"
+              @click="openToTarget(COMMON_URL.download.live.flutter.github)"
+            >
+              {{ COMMON_URL.download.live.flutter.github }}
+            </span>
+          </span>
+          <h3>安卓</h3>
+          <div>
+            <span>
+              最新版本:<span
+                class="link"
+                @click="openToTarget(COMMON_URL.download.live.flutter.android)"
+              >
+                v0.0.4
+              </span>
+            </span>
+          </div>
+          <h3>苹果</h3>
+          <div>
+            <span>最新版本:<span>自行构建</span></span>
+          </div>
+        </div>
+        <div class="hr"></div>
+        <div class="item">
+          <h2>React-Native</h2>
+          <span>
+            代码仓库:<span
+              class="link"
+              @click="openToTarget(COMMON_URL.download.live.reactNative.github)"
+            >
+              {{ COMMON_URL.download.live.reactNative.github }}
+            </span>
+          </span>
+          <h3>安卓</h3>
+          <div>
+            <span>最新版本:<span>进度:30%</span></span>
+          </div>
+          <h3>苹果</h3>
+          <div>
+            <span>最新版本:<span>进度:30%</span></span>
+          </div>
+        </div>
+        <div class="hr"></div>
+        <div class="item">
+          <h2>Kotilin</h2>
+          <span>
+            代码仓库:<span
+              class="link"
+              @click="openToTarget(COMMON_URL.download.live.kotlin.github)"
+            >
+              {{ COMMON_URL.download.live.kotlin.github }}
+            </span>
+          </span>
+          <h3>安卓</h3>
+          <div>
+            <span>最新版本:<span>进度:1%</span></span>
+          </div>
+        </div>
+        <div class="hr"></div>
+        <div class="item">
+          <h2>Electron</h2>
+          <span>
+            代码仓库:<span
+              class="link"
+              @click="openToTarget(COMMON_URL.download.live.electron.github)"
+            >
+              {{ COMMON_URL.download.live.electron.github }}
+            </span>
+          </span>
+          <h3>Windows</h3>
+          <div>
+            <span>最新版本:<span>todo</span></span>
+          </div>
+          <h3>macOS</h3>
+          <div>
+            <span>最新版本:<span>todo</span></span>
+          </div>
+          <h3>Linux</h3>
+          <div>
+            <span>最新版本:<span>todo</span></span>
+          </div>
+        </div>
+      </div>
+    </div>
+    <div class="aside">
+      <div class="title">本页目录</div>
+      <div class="item h1">Flutter</div>
+      <div class="item h2">安卓</div>
+      <div class="item h2">苹果</div>
+      <div class="item h1">React-Native</div>
+      <div class="item h2">安卓</div>
+      <div class="item h2">苹果</div>
+      <div class="item h1">Kotlin</div>
+      <div class="item h2">安卓</div>
+      <div class="item h1">Electron</div>
+      <div class="item h2">Windows</div>
+      <div class="item h2">macOS</div>
+      <div class="item h2">Linux</div>
+    </div>
+  </div>
+</template>
+
+<script lang="ts" setup>
+import { openToTarget } from 'billd-utils';
+import { onMounted, ref } from 'vue';
+
+import { fetchServerInfo } from '@/api/other';
+import { COMMON_URL } from '@/constant';
+import { IServerInfo } from '@/interface';
+
+const serverInfo = ref<IServerInfo>();
+const loading = ref(false);
+
+async function handleFetchServerInfo() {
+  try {
+    loading.value = true;
+    const res = await fetchServerInfo();
+    if (res.code === 200) {
+      serverInfo.value = res.data;
+    }
+  } catch (error) {
+    console.log(error);
+  } finally {
+    loading.value = false;
+  }
+}
+
+onMounted(() => {
+  handleFetchServerInfo();
+});
+</script>
+
+<style lang="scss" scoped>
+.download-wrap {
+  display: flex;
+  box-sizing: border-box;
+  margin: 0 auto;
+  padding-top: 50px;
+  padding-bottom: 10px;
+  width: 960px;
+  color: rgb(33, 53, 71);
+  .link {
+    color: $theme-color-gold;
+    cursor: pointer;
+  }
+
+  .content {
+    flex: 1;
+    .title {
+      margin: 0;
+      margin-bottom: 20px;
+      font-weight: 500;
+      font-size: 40px;
+    }
+    .hr {
+      margin: 60px 0 20px 0;
+      width: 100%;
+      height: 1px;
+      background-color: #e7e7e7;
+    }
+    .list {
+      h2 {
+        font-weight: 600;
+      }
+      .item {
+        position: relative;
+        font-size: 16px;
+      }
+    }
+  }
+
+  .aside {
+    padding-left: 90px;
+    width: 150px;
+
+    .title {
+      margin-bottom: 8px;
+      color: rgb(33, 53, 71);
+      font-weight: 700;
+      font-size: 12px;
+    }
+    .item {
+      margin-bottom: 8px;
+      color: rgba(60, 60, 60, 0.7);
+      font-size: 13px;
+      cursor: pointer;
+      &:hover {
+        color: #213547;
+      }
+      &.h1 {
+      }
+      &.h2 {
+        margin-left: 10px;
+      }
+    }
+  }
+}
+</style>

+ 164 - 0
src/views/download/remoteDesktop/index.vue

@@ -0,0 +1,164 @@
+<template>
+  <div class="download-wrap">
+    <div class="content">
+      <h1 class="title">远程桌面客户端下载</h1>
+      <div class="hr"></div>
+      <div class="list">
+        <div class="item">
+          <h2>Electron</h2>
+          <span>
+            代码仓库:<span
+              class="link"
+              @click="
+                openToTarget(COMMON_URL.download.remoteDesktop.electron.github)
+              "
+            >
+              {{ COMMON_URL.download.remoteDesktop.electron.github }}
+            </span>
+          </span>
+          <h3>Windows</h3>
+          <div>
+            <span>最新版本:<span>自行构建</span></span>
+          </div>
+          <h3>macOS</h3>
+          <div>
+            <span>最新版本:<span>自行构建</span></span>
+          </div>
+          <h3>Linux</h3>
+          <div>
+            <span>最新版本:<span>自行构建</span></span>
+          </div>
+        </div>
+        <div class="hr"></div>
+        <div class="item">
+          <h2>Flutter</h2>
+          <span>
+            代码仓库:<span
+              class="link"
+              @click="
+                openToTarget(COMMON_URL.download.remoteDesktop.flutter.github)
+              "
+            >
+              {{ COMMON_URL.download.remoteDesktop.flutter.github }}
+            </span>
+          </span>
+          <h3>安卓</h3>
+          <div>
+            <span>最新版本:<span>todo</span></span>
+          </div>
+          <h3>苹果</h3>
+          <div>
+            <span>最新版本:<span>todo</span></span>
+          </div>
+        </div>
+      </div>
+    </div>
+    <div class="aside">
+      <div class="title">本页目录</div>
+      <div class="item h1">Electron</div>
+      <div class="item h2">Windows</div>
+      <div class="item h2">macOS</div>
+      <div class="item h2">Linux</div>
+      <div class="item h1">Flutter</div>
+      <div class="item h2">安卓</div>
+      <div class="item h2">苹果</div>
+    </div>
+  </div>
+</template>
+
+<script lang="ts" setup>
+import { openToTarget } from 'billd-utils';
+import { onMounted, ref } from 'vue';
+
+import { fetchServerInfo } from '@/api/other';
+import { COMMON_URL } from '@/constant';
+import { IServerInfo } from '@/interface';
+
+const serverInfo = ref<IServerInfo>();
+const loading = ref(false);
+
+async function handleFetchServerInfo() {
+  try {
+    loading.value = true;
+    const res = await fetchServerInfo();
+    if (res.code === 200) {
+      serverInfo.value = res.data;
+    }
+  } catch (error) {
+    console.log(error);
+  } finally {
+    loading.value = false;
+  }
+}
+
+onMounted(() => {
+  handleFetchServerInfo();
+});
+</script>
+
+<style lang="scss" scoped>
+.download-wrap {
+  display: flex;
+  box-sizing: border-box;
+  margin: 0 auto;
+  padding-top: 50px;
+  padding-bottom: 10px;
+  width: 960px;
+  color: rgb(33, 53, 71);
+  .link {
+    color: $theme-color-gold;
+    cursor: pointer;
+  }
+
+  .content {
+    flex: 1;
+    .title {
+      margin: 0;
+      margin-bottom: 20px;
+      font-weight: 500;
+      font-size: 40px;
+    }
+    .hr {
+      margin: 60px 0 20px 0;
+      width: 100%;
+      height: 1px;
+      background-color: #e7e7e7;
+    }
+    .list {
+      h2 {
+        font-weight: 600;
+      }
+      .item {
+        position: relative;
+        font-size: 16px;
+      }
+    }
+  }
+
+  .aside {
+    padding-left: 90px;
+    width: 150px;
+
+    .title {
+      margin-bottom: 8px;
+      color: rgb(33, 53, 71);
+      font-weight: 700;
+      font-size: 12px;
+    }
+    .item {
+      margin-bottom: 8px;
+      color: rgba(60, 60, 60, 0.7);
+      font-size: 13px;
+      cursor: pointer;
+      &:hover {
+        color: #213547;
+      }
+      &.h1 {
+      }
+      &.h2 {
+        margin-left: 10px;
+      }
+    }
+  }
+}
+</style>

+ 1 - 1
src/views/home/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="home-wrap">
-    <SystemModal></SystemModal>
+    <!-- <SystemModal></SystemModal> -->
     <div class="play-container">
       <div
         v-if="configBg && configBg !== ''"

+ 2 - 2
src/views/pull/index.vue

@@ -604,8 +604,8 @@ async function handlePk() {
   const stream = await handleUserMedia({ video: true, audio: true });
   const rtc = networkStore.rtcMap.get(`${roomId.value}`)!;
   if (rtc?.peerConnection) {
-    rtc.peerConnection.onnegotiationneeded = (event) => {
-      console.log('onnegotiationneeded', event);
+    rtc.peerConnection.onnegotiationneeded = () => {
+      console.log('onnegotiationneeded');
     };
     stream?.getTracks().forEach((track) => {
       rtc.peerConnection?.addTrack(track, stream);

+ 7 - 12
src/views/push/index.vue

@@ -950,7 +950,6 @@ function handleMixedAudio() {
     const source = audioCtx.createMediaStreamSource(item.stream);
     const gainNode = audioCtx.createGain();
     gainNode.gain.value = (item.volume || 0) / 100;
-    console.log((item.volume || 0) / 100, item, '88888');
     source.connect(gainNode);
     res.push({ source, gainNode });
     // console.log('混流', item.stream?.id, item.stream);
@@ -1925,11 +1924,7 @@ async function addMediaOk(val: AppRootState['allTrack'][0]) {
     cacheStore.setResourceList(res);
     console.log('获取会议成功');
     if (stream.getAudioTracks()[0]) {
-      console.log(
-        '会议有音频',
-        stream.getAudioTracks()[0],
-        mettingVideoTrack.volume
-      );
+      console.log('会议有音频');
       mettingVideoTrack.audio = 1;
       mettingVideoTrack.volume = appStore.normalVolume;
       const audioTrack: AppRootState['allTrack'][0] = {
@@ -2032,7 +2027,7 @@ async function addMediaOk(val: AppRootState['allTrack'][0]) {
     appStore.setAllTrack(res);
     // @ts-ignore
     cacheStore.setResourceList(res);
-    console.log('获取文字成功', fabricCanvas.value);
+    console.log('获取文字成功');
   } else if (val.type === MediaTypeEnum.time) {
     const timeTrack: AppRootState['allTrack'][0] = {
       id: getRandomEnglishString(6),
@@ -2071,7 +2066,7 @@ async function addMediaOk(val: AppRootState['allTrack'][0]) {
     appStore.setAllTrack(res);
     // @ts-ignore
     cacheStore.setResourceList(res);
-    console.log('获取时间成功', fabricCanvas.value);
+    console.log('获取时间成功');
   } else if (val.type === MediaTypeEnum.stopwatch) {
     const stopwatchTrack: AppRootState['allTrack'][0] = {
       id: getRandomEnglishString(6),
@@ -2111,7 +2106,7 @@ async function addMediaOk(val: AppRootState['allTrack'][0]) {
     appStore.setAllTrack(res);
     // @ts-ignore
     cacheStore.setResourceList(res);
-    console.log('获取秒表成功', fabricCanvas.value);
+    console.log('获取秒表成功');
   } else if (val.type === MediaTypeEnum.img) {
     const imgTrack: AppRootState['allTrack'][0] = {
       id: getRandomEnglishString(6),
@@ -2173,7 +2168,7 @@ async function addMediaOk(val: AppRootState['allTrack'][0]) {
     appStore.setAllTrack(res);
     // @ts-ignore
     cacheStore.setResourceList(res);
-    console.log('获取图片成功', fabricCanvas.value);
+    console.log('获取图片成功');
   } else if (val.type === MediaTypeEnum.media) {
     const mediaVideoTrack: AppRootState['allTrack'][0] = {
       id: getRandomEnglishString(6),
@@ -2212,7 +2207,7 @@ async function addMediaOk(val: AppRootState['allTrack'][0]) {
       mediaVideoTrack.trackid = stream.getVideoTracks()[0].id;
 
       if (stream.getAudioTracks()[0]) {
-        console.log('视频有音频', stream.getAudioTracks()[0]);
+        console.log('视频有音频');
         mediaVideoTrack.audio = 1;
         mediaVideoTrack.volume = appStore.normalVolume;
         const audioTrack: AppRootState['allTrack'][0] = {
@@ -2242,7 +2237,7 @@ async function addMediaOk(val: AppRootState['allTrack'][0]) {
     appStore.setAllTrack(res);
     // @ts-ignore
     cacheStore.setResourceList(res);
-    console.log('获取视频成功', fabricCanvas.value);
+    console.log('获取视频成功');
   }
 }
 

+ 1 - 23
src/views/remoteDesktop/index.vue

@@ -1,26 +1,5 @@
 <template>
   <div>
-    <n-space>
-      <n-button
-        type="primary"
-        @click="openToTarget(COMMON_URL.download.deskWindows)"
-      >
-        Windows版下载
-      </n-button>
-      <n-button
-        type="primary"
-        @click="openToTarget(COMMON_URL.download.deskMacOS)"
-      >
-        macOS版下载
-      </n-button>
-      <n-button
-        type="primary"
-        @click="openToTarget(COMMON_URL.release.desk)"
-      >
-        历史版本
-      </n-button>
-    </n-space>
-
     <h1 v-if="NODE_ENV === 'development'">
       我的id:{{ mySocketId }},<n-button @click="copyToClipBoard(mySocketId)">
         复制
@@ -66,10 +45,9 @@
 
 <script lang="ts" setup>
 import { Key } from '@nut-tree/shared';
-import { copyToClipBoard, getRandomString, openToTarget } from 'billd-utils';
+import { copyToClipBoard, getRandomString } from 'billd-utils';
 import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
 
-import { COMMON_URL } from '@/constant';
 import { usePull } from '@/hooks/use-pull';
 import { useTip } from '@/hooks/use-tip';
 import { useAppStore } from '@/store/app';