From 233e4fc4f35bd00a36ee34a7fbf5e47b41db26db Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 17 Nov 2025 09:54:44 +0800
Subject: [PATCH] feat:更新初始化地形
---
src/page/index/index.vue | 41 +++++++++++++++++++++++++++++++++++++----
1 files changed, 37 insertions(+), 4 deletions(-)
diff --git a/src/page/index/index.vue b/src/page/index/index.vue
index 72fef7f..995cd73 100644
--- a/src/page/index/index.vue
+++ b/src/page/index/index.vue
@@ -10,10 +10,12 @@
<!-- 顶部导航栏 -->
<top ref="top" />
<!-- 顶部标签卡 -->
- <tags />
- <search class="avue-view" v-show="isSearch"></search>
+ <div class="tags-box">
+ <tags />
+ </div>
+ <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" />
@@ -22,10 +24,10 @@
</div>
</div>
</div>
+ <GlobalWS />
<!-- <wechat></wechat> -->
</div>
</template>
-
<script>
import index from '@/mixins/index';
import wechat from './wechat.vue';
@@ -36,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,
@@ -76,6 +80,15 @@
this.$store.dispatch('GetMenu', item.id).then(data => {
if (data.length !== 0) {
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 +116,23 @@
},
};
</script>
+
+<style lang="scss" scoped>
+// #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);
+ height: pxToVh(55);
+}
+</style>
--
Gitblit v1.9.3