From 0082fa417fb2af9add3406bf05ab3e3e45890c34 Mon Sep 17 00:00:00 2001
From: rain <1679827795@qq.com>
Date: Thu, 12 Jun 2025 14:30:02 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/drone/drone-web-manage

---
 src/page/index/index.vue |   36 ++++++++++++++++++++++++++++++++++--
 1 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/src/page/index/index.vue b/src/page/index/index.vue
index 72fef7f..c925305 100644
--- a/src/page/index/index.vue
+++ b/src/page/index/index.vue
@@ -10,7 +10,9 @@
         <!-- 顶部导航栏 -->
         <top ref="top" />
         <!-- 顶部标签卡 -->
-        <tags />
+        <div class="tags-box">
+          <tags />
+        </div>
         <search class="avue-view" v-show="isSearch"></search>
         <!-- 主体视图层 -->
         <div id="avue-view" v-show="!isSearch" v-if="isRefresh">
@@ -75,7 +77,16 @@
     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);
+            const [path, queryString] = redirect.split('?');
+            const query = queryString ? Object.fromEntries(new URLSearchParams(queryString)) : {};
+            this.$router.push({ path,query})
+          }
         }
         //当点击顶部菜单后默认打开第一个菜单
         /*if (!this.validatenull(item)) {
@@ -103,3 +114,24 @@
   },
 };
 </script>
+
+<style lang="scss" scoped>
+:deep(.basic-container){
+height: none !important;}
+// #avue-view{
+//   :deep(){
+//     .avue-crud__body{
+//       .el-form{
+//         height: 745px;
+//         overflow: auto;
+//       }
+//     }
+//   }
+// }
+
+.tags-box{
+  background: transparent;
+  padding: 0 10px;
+  --el-color-primary: rgba(20, 65, 255, 1);
+}
+</style>

--
Gitblit v1.9.3