mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
test: add dynamic page to full-static fixture
This commit is contained in:
parent
7c6e170a89
commit
c48a834b98
37
test/fixtures/full-static/layouts/default.vue
vendored
37
test/fixtures/full-static/layouts/default.vue
vendored
@ -1,21 +1,34 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<main>
|
||||||
<NLink to="/">
|
<nav>
|
||||||
Home
|
<NLink to="/">
|
||||||
</NLink>
|
Home
|
||||||
<NLink to="/store">
|
</NLink>
|
||||||
Store
|
<NLink to="/store">
|
||||||
</NLink>
|
Store
|
||||||
<NLink to="/pagination/1">
|
</NLink>
|
||||||
Pagination
|
<NLink to="/pagination/1">
|
||||||
</NLink>
|
Pagination
|
||||||
|
</NLink>
|
||||||
|
<NLink to="/dynamic/foo%20bar">
|
||||||
|
Dynamic route
|
||||||
|
</NLink>
|
||||||
|
</nav>
|
||||||
<br>
|
<br>
|
||||||
<Nuxt />
|
<Nuxt />
|
||||||
</div>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
main {
|
||||||
|
margin: 1em 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
margin: 0 1em;
|
margin-right: 1em;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
10
test/fixtures/full-static/pages/dynamic/_name.vue
vendored
Normal file
10
test/fixtures/full-static/pages/dynamic/_name.vue
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
Welcome {{ $route.params.name || 'nuxter' }}!
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
}
|
||||||
|
</script>
|
Loading…
Reference in New Issue
Block a user