gemercheung 2 лет назад
Родитель
Сommit
61740debe8
3 измененных файлов с 14 добавлено и 1 удалено
  1. 12 0
      src/App.vue
  2. 1 1
      src/components/chatRoom/controls/actions.ts
  3. 1 0
      vite.config.ts

+ 12 - 0
src/App.vue

@@ -165,6 +165,7 @@
 </script>
 
 <template>
+  <div class="debug"> 小地图显示:{{ !!unref(refMiniMap) && player.showWidgets }} </div>
   <LoadingLogo :thumb="true" />
   <!-- 引导页 -->
   <Title v-if="isLoaded && isTourMode" />
@@ -173,6 +174,7 @@
     <div class="scene" ref="scene$"></div>
     <template v-if="dataLoaded">
       <!-- 小地图 start -->
+      {{ !!unref(refMiniMap) && player.showWidgets }}
       <MiniMap
         :show="!!unref(refMiniMap) && player.showWidgets"
         :show-dollhouse="Boolean(controls.showDollhouse)"
@@ -198,4 +200,14 @@
 
 <style lang="scss">
   @import './app.scss';
+  .debug {
+    color: white;
+    background-color: rgba($color: #000000, $alpha: 0.3);
+    position: fixed;
+    top: 0;
+    left: 0;
+    z-index: 100000;
+    text-align: left;
+    width: 100%;
+  }
 </style>

+ 1 - 1
src/components/chatRoom/controls/actions.ts

@@ -218,7 +218,7 @@ const handleUserLeave = (user?: UserInfoType, members?: UserInfoType[]) => {
   if (user) {
     let name = user.Nickname;
     if (user.Role == 'leader') {
-      name = '';
+      name = '主持人';
       Dialog.toast({ content: `主持人离开了房间` });
     }
 

+ 1 - 0
vite.config.ts

@@ -53,6 +53,7 @@ export default ({ mode }) =>
     server: {
       https: Number(loadEnv(mode, process.cwd()).VITE_USE_HTTPS) == 1,
       host: true,
+      port: 6100,
       headers: {
         'Cache-Control': 'no-store',
       },