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>
|
||||
<div>
|
||||
<NLink to="/">
|
||||
Home
|
||||
</NLink>
|
||||
<NLink to="/store">
|
||||
Store
|
||||
</NLink>
|
||||
<NLink to="/pagination/1">
|
||||
Pagination
|
||||
</NLink>
|
||||
<main>
|
||||
<nav>
|
||||
<NLink to="/">
|
||||
Home
|
||||
</NLink>
|
||||
<NLink to="/store">
|
||||
Store
|
||||
</NLink>
|
||||
<NLink to="/pagination/1">
|
||||
Pagination
|
||||
</NLink>
|
||||
<NLink to="/dynamic/foo%20bar">
|
||||
Dynamic route
|
||||
</NLink>
|
||||
</nav>
|
||||
<br>
|
||||
<Nuxt />
|
||||
</div>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
main {
|
||||
margin: 1em 1em;
|
||||
}
|
||||
|
||||
nav {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
a {
|
||||
margin: 0 1em;
|
||||
margin-right: 1em;
|
||||
}
|
||||
</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