[Update] edit vue.config.js and router
This commit is contained in:
parent
3da70b4bf3
commit
71358b34bd
11
src/pages/Agenda.vue
Normal file
11
src/pages/Agenda.vue
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<template>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
})
|
||||||
|
export default class Agenda extends Vue {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
11
src/pages/Home.vue
Normal file
11
src/pages/Home.vue
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<template>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
})
|
||||||
|
export default class Home extends Vue {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
11
src/pages/Sponsor.vue
Normal file
11
src/pages/Sponsor.vue
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<template>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
})
|
||||||
|
export default class Sponsor extends Vue {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
11
src/pages/Team.vue
Normal file
11
src/pages/Team.vue
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<template>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
})
|
||||||
|
export default class Team extends Vue {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
11
src/pages/Traffic.vue
Normal file
11
src/pages/Traffic.vue
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<template>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
})
|
||||||
|
export default class Traffic extends Vue {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
11
src/pages/Venue.vue
Normal file
11
src/pages/Venue.vue
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<template>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
})
|
||||||
|
export default class Venue extends Vue {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
@ -4,6 +4,12 @@ import VueRouter, { RouteConfig } from 'vue-router';
|
|||||||
import CFP from '../pages/CFP.vue';
|
import CFP from '../pages/CFP.vue';
|
||||||
import News from '../pages/News.vue';
|
import News from '../pages/News.vue';
|
||||||
import OCFP from '../pages/OCFP.vue';
|
import OCFP from '../pages/OCFP.vue';
|
||||||
|
import Home from '../pages/Home.vue';
|
||||||
|
import Agenda from '../pages/Agenda.vue';
|
||||||
|
import Sponsor from '../pages/Sponsor.vue';
|
||||||
|
import Team from '../pages/Team.vue';
|
||||||
|
import Traffic from '../pages/Traffic.vue';
|
||||||
|
import Venue from '../pages/Venue.vue';
|
||||||
|
|
||||||
Vue.use(VueRouter);
|
Vue.use(VueRouter);
|
||||||
|
|
||||||
@ -11,13 +17,63 @@ export const routes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
name: 'Home',
|
name: 'Home',
|
||||||
redirect: '/cfp',
|
component: Home,
|
||||||
meta: {
|
meta: {
|
||||||
index: 0,
|
index: 0,
|
||||||
label: 'SITCON 2021',
|
label: 'SITCON 2021',
|
||||||
menuItem: true
|
menuItem: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/agenda',
|
||||||
|
name: 'Agenda',
|
||||||
|
component: Agenda,
|
||||||
|
meta: {
|
||||||
|
index: 0,
|
||||||
|
label: 'SITCON 2021',
|
||||||
|
menuItem: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/sponsor',
|
||||||
|
name: 'Sponsor',
|
||||||
|
component: Sponsor,
|
||||||
|
meta: {
|
||||||
|
index: 0,
|
||||||
|
label: '贊助資訊',
|
||||||
|
menuItem: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/team',
|
||||||
|
name: 'Team',
|
||||||
|
component: Team,
|
||||||
|
meta: {
|
||||||
|
index: 0,
|
||||||
|
label: 'SITCON團隊',
|
||||||
|
menuItem: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/traffic',
|
||||||
|
name: 'Traffic',
|
||||||
|
component: Traffic,
|
||||||
|
meta: {
|
||||||
|
index: 0,
|
||||||
|
label: '交通方式',
|
||||||
|
menuItem: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/venue',
|
||||||
|
name: 'Venue',
|
||||||
|
component: Venue,
|
||||||
|
meta: {
|
||||||
|
index: 0,
|
||||||
|
label: '會場地圖',
|
||||||
|
menuItem: true
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/cfp',
|
path: '/cfp',
|
||||||
name: 'CFP',
|
name: 'CFP',
|
||||||
|
@ -15,7 +15,19 @@ module.exports = {
|
|||||||
'/2021/cfp',
|
'/2021/cfp',
|
||||||
'/2021/cfp/',
|
'/2021/cfp/',
|
||||||
'/2021/cfp/news',
|
'/2021/cfp/news',
|
||||||
'/2021/cfp/news/'
|
'/2021/cfp/news/',
|
||||||
|
'/2021/cfp/ocfp-news',
|
||||||
|
'/2021/cfp/ocfp-news/',
|
||||||
|
'/2021/agenda',
|
||||||
|
'/2021/agenda/',
|
||||||
|
'/2021/venue',
|
||||||
|
'/2021/venue/',
|
||||||
|
'/2021/traffic',
|
||||||
|
'/2021/traffic/',
|
||||||
|
'/2021/team',
|
||||||
|
'/2021/team/',
|
||||||
|
'/2021/sponsor',
|
||||||
|
'/2021/sponsor/'
|
||||||
],
|
],
|
||||||
useRenderEvent: true,
|
useRenderEvent: true,
|
||||||
headless: true,
|
headless: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user