gemercheung 2 năm trước cách đây
mục cha
commit
515c6222dc
4 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 1 1
      src/api/instance.ts
  2. 2 0
      src/main.ts
  3. 1 1
      src/views/room/list.vue
  4. 4 0
      src/views/statistic/tab/tab1.vue

+ 1 - 1
src/api/instance.ts

@@ -34,7 +34,7 @@ let isOnWarning = false
 const tokenInvalid = () => {
   if (!isOnWarning) {
     // debugger
-    const { t } = useI18n()
+    const { t } = useI18n();
     setTimeout(() => {
       Modal.info({
         title: () => t('base.tips'),

+ 2 - 0
src/main.ts

@@ -1,7 +1,9 @@
 import { createApp } from 'vue'
 import 'normalize.css'
 import '@/assets/iconfont/iconfont.css'
+//ant 全局要用优化在此引进
 import 'ant-design-vue/lib/message/style/index.less'
+import 'ant-design-vue/lib/modal/style/index.less'
 import './style.css'
 import AppCom from './App.vue'
 import router from './router'

+ 1 - 1
src/views/room/list.vue

@@ -1,7 +1,7 @@
 <template>
   <div ref="headerRef" class="header">
     <div style="display: flex; flex-direction: row" class="header-title-tab">
-      <a-button type="text" @click="roomStore.setRoomStatus(1)">
+      <a-button type="text" @click="roomStore.setRoomStatus(0);roomType = 0;">
         <h3>{{ t('room.myRoom') }}({{ roomStore.list.length }})</h3>
       </a-button>
 

+ 4 - 0
src/views/statistic/tab/tab1.vue

@@ -211,6 +211,10 @@ const initTab = async () => {
   if (unref(userMsgCountList)?.length || unref(userMsgManList)?.length) {
     initRoomMsgChart()
   }
+  setTimeout(()=>{
+    handleResize();
+    console.log('render');
+  },1000)
 }
 // const initOnlineChart = () => {
 //   const chart1 = document.getElementById('chart-1')