From e51a8bda1e15ad30654c5f90f5591f240a5ec3de Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期二, 22 八月 2023 18:02:09 +0800 Subject: [PATCH] modified: .env.development new file: src/api/home.js new file: src/assets/404_images/bg.png modified: src/main.js modified: src/views/home/index.vue modified: src/views/standardLibrary/index.vue --- src/layout/index.vue | 30 ++++++++++++++++++++++++++++-- 1 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index f8ca9cf..37ab14d 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -8,8 +8,12 @@ </div> <div class="clearFixed" /> <!-- 娓呴櫎瀹氫綅鐨勫奖鍝� --> - <Breadcrumb class="breadcrumb-container" /> - <app-main /> + <div class="breadcrumb"> + <Breadcrumb class="breadcrumb-container" ref="breadcrumb" /> + </div> + <div class="app-main"> + <app-main ref="main" @triggerCombackBtn="triggerCombackBtn"/> + </div> </div> </div> </template> @@ -50,6 +54,18 @@ methods: { handleClickOutside() { this.$store.dispatch('app/closeSideBar', { withoutAnimation: false }) + }, + combackPlan(){ + this.$refs.main.childMethod() + }, + indexAdd(){ + this.$refs.main.mainAdd() + }, + showIndexAdd(){ + this.$refs.breadcrumb.showadd() + }, + triggerCombackBtn(){ + this.$refs.breadcrumb.triggerBtnPlan() } } } @@ -72,10 +88,20 @@ box-shadow: 0 0 0.857143rem rgba(0,0,0,.12); } .main-container{ + position: relative; background: #f0f2f5; .clearFixed{ height: 50px; } + .breadcrumb{ + position: fixed; + left: 0.57rem !important; + width: 93.8%; + z-index: 999; + } + .app-main{ + margin-top: 4vh; + } } } .drawer-bg { -- Gitblit v1.9.3