From 0f16db42e4e331bfaf084c27ca602c275e87668d Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 28 Oct 2025 18:07:42 +0800
Subject: [PATCH] feat:渲染数据

---
 src/page/index/index.vue |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/page/index/index.vue b/src/page/index/index.vue
index c925305..995cd73 100644
--- a/src/page/index/index.vue
+++ b/src/page/index/index.vue
@@ -13,9 +13,9 @@
         <div class="tags-box">
           <tags />
         </div>
-        <search class="avue-view" v-show="isSearch"></search>
+        <search class="main-avue-view-container" v-show="isSearch"></search>
         <!-- 主体视图层 -->
-        <div id="avue-view" v-show="!isSearch" v-if="isRefresh">
+        <div class="main-avue-view-container" v-show="!isSearch" v-if="isRefresh">
           <router-view #="{ Component }">
             <keep-alive :include="$store.getters.tagsKeep">
               <component :is="Component" />
@@ -24,10 +24,10 @@
         </div>
       </div>
     </div>
+    <GlobalWS />
     <!-- <wechat></wechat> -->
   </div>
 </template>
-
 <script>
 import index from '@/mixins/index';
 import wechat from './wechat.vue';
@@ -38,10 +38,12 @@
 import logo from './logo.vue';
 import top from './top/index.vue';
 import sidebar from './sidebar/index.vue';
+import GlobalWS from '@/page/index/GlobalWS.vue';
 
 export default {
   mixins: [index],
   components: {
+    GlobalWS,
     top,
     logo,
     tags,
@@ -77,15 +79,15 @@
     openMenu(item = {}) {
       this.$store.dispatch('GetMenu', item.id).then(data => {
         if (data.length !== 0) {
-          this.$router.$avueRouter.formatRoutes(data, true)
+          this.$router.$avueRouter.formatRoutes(data, true);
 
           // 获取url里面的redirect
           const redirect = decodeURIComponent(this.$route.query.redirect || '');
-          if (redirect){
-            console.log('redirect',redirect);
+          if (redirect) {
+            console.log('redirect', redirect);
             const [path, queryString] = redirect.split('?');
             const query = queryString ? Object.fromEntries(new URLSearchParams(queryString)) : {};
-            this.$router.push({ path,query})
+            this.$router.push({ path, query });
           }
         }
         //当点击顶部菜单后默认打开第一个菜单
@@ -116,8 +118,6 @@
 </script>
 
 <style lang="scss" scoped>
-:deep(.basic-container){
-height: none !important;}
 // #avue-view{
 //   :deep(){
 //     .avue-crud__body{
@@ -129,9 +129,10 @@
 //   }
 // }
 
-.tags-box{
+.tags-box {
   background: transparent;
   padding: 0 10px;
   --el-color-primary: rgba(20, 65, 255, 1);
+  height: pxToVh(55);
 }
 </style>

--
Gitblit v1.9.3