SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.47k stars 1.54k forks source link

is support <keep-alive>? #934

Closed bulolo closed 4 years ago

bulolo commented 4 years ago

is support ?

app.vue

    <keep-alive>
      <router-view v-loading="loading"></router-view>
    </keep-alive>
       this.$router.push({
            name: "a"
          });

a.vue

    activated() {
      console.log("活跃状态");
    },
    deactivated() {
      console.log("缓存状态")
    },

nothing print out

snail-boy commented 4 years ago

tis support keep-alive just you write is error

bulolo commented 4 years ago

@websmallrabbit 请问一下哪里错了。感谢