Fixiaobai
2023-08-17 db639ba99b5856503053cf74efe73b6c5604d9d6
src/layout/components/AppMain.vue
@@ -1,7 +1,7 @@
<template>
  <section class="app-main">
    <transition name="fade-transform" mode="out-in">
      <router-view :key="key" />
      <router-view ref="child" @triggerMainBtnPlan="triggerMainBtnPlan" :key="key" />
    </transition>
  </section>
</template>
@@ -12,6 +12,14 @@
  computed: {
    key() {
      return this.$route.path
    }
  },
  methods: {
    childMethod(){
      this.$refs.child.combackLookPlan()
    },
    triggerMainBtnPlan(){
      this.$parent.triggerCombackBtn()
    }
  }
}
@@ -45,4 +53,7 @@
    padding-right: 15px;
  }
}
.el-menu--popup{
  width: 120px;
}
</style>