<keep-alive>
  <router-view :key="key"></router-view>
</keep-alive>

 

import { getUuid } from 'src/common/js/getUuid'
computed: {
    key () {
      let num = this.$route.name !== undefined ? this.$route.name + getUuid() : this.$route + getUuid()
      console.log(num)
      return num
    }
  }

 

Logo

前往低代码交流专区

更多推荐