Skip to content

Commit

Permalink
renderer: [App] keep-alive every page-* compo
Browse files Browse the repository at this point in the history
  • Loading branch information
rocka committed Nov 20, 2017
1 parent 6641164 commit f7e0ad4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
<div id="app">
<audio id="playerbar-audio"
:src="playing.url"></audio>
<appNav></appNav>
<AppNav></AppNav>
<div class="router-view">
<keep-alive>
<keep-alive :include="/^page-\w+$/">
<router-view></router-view>
</keep-alive>
</div>
<playerBar></playerBar>
<PlayerBar></PlayerBar>
</div>
</template>

<script>
import { mapActions, mapGetters } from 'vuex';
import appNav from './components/appNav';
import playerBar from './components/playerBar';
import AppNav from './components/appNav';
import PlayerBar from './components/playerBar';
import ApiRenderer from './util/apiRenderer';
import * as types from './vuex/mutation-types';
export default {
components: {
appNav,
playerBar
AppNav,
PlayerBar
},
methods: {
...mapActions([
Expand Down

0 comments on commit f7e0ad4

Please sign in to comment.