Browse Source

feat: 目录多层渲染

sunxiao 1 month ago
parent
commit
75074e121e
3 changed files with 4 additions and 4 deletions
  1. 2 2
      .env.development
  2. 1 1
      src/components/Chat/ChatTree.vue
  3. 1 1
      src/views/data/config.js

+ 2 - 2
.env.development

@@ -1,5 +1,5 @@
 # 请求地址
-# VITE_BASE_URL=http://chat.sequoialibra.com:81/apiServe/
-VITE_BASE_URL=http://192.168.40.21:8080/
+VITE_BASE_URL=http://chat.sequoialibra.com:81/apiServe/
+# VITE_BASE_URL=http://192.168.40.21:8080/
 # 请求前缀
 VITE_BASE_PREFIX='' 

+ 1 - 1
src/components/Chat/ChatTree.vue

@@ -44,7 +44,7 @@ const getHrefValue = (val) => {
               </template>
               {{ item.n }}
             </NTooltip>
-            <ChatTree v-if="item.c.length" :data="item.c" />
+            <!-- <ChatTree v-if="item.c.length" :data="item.c" /> -->
           </li>
         </template>
       </ol>

+ 1 - 1
src/views/data/config.js

@@ -325,7 +325,6 @@ export const getEchartLineOptions = ({ xAxisData, seriesData }) => {
   return option;
 };
 
-
 export const getEchartMultiLineOption = ({ xAxisData, echartData, specificData }) => {
   const colors = ["#5B8FF9", "#82c370", "#ffbf59"];
   const series = echartData.map(({ name, val: data }, index) => ({
@@ -367,6 +366,7 @@ export const getEchartMultiLineOption = ({ xAxisData, echartData, specificData }
       end: 100,
       xAxisIndex: [0],
     }],
+    color: colors,
     grid: {
       left: "5%",
       top: "10%",