| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <template>
- <div id="app">
- <keep-alive>
- <router-view v-if="$route.meta.keepAlive" />
- </keep-alive>
- <router-view v-if="!$route.meta.keepAlive" />
- </div>
- </template>
- <script>
- export default {
- data() {
- return {}
- },
- created() {
- console.log('助老')
- },
- }
- </script>
- <style>
- #app {
- font-family: Avenir, Helvetica, Arial, sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- color: #2c3e50;
- height: 100%;
- }
- #nav {
- padding: 30px;
- }
- #nav a {
- font-weight: bold;
- color: #2c3e50;
- }
- #nav a.router-link-exact-active {
- color: #42b983;
- }
- </style>
|