feature: Add vue-router
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -32,13 +32,5 @@ getPage()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div v-if="isPokemon">
|
||||
<Pokedex :pokemonId="pokemonId" />
|
||||
</div>
|
||||
<div v-if="isAbout">
|
||||
<About />
|
||||
</div>
|
||||
<div v-if="is404">
|
||||
<Page404 />
|
||||
</div>
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user