You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.0 KiB
47 lines
1.0 KiB
var app;
|
|
Vue.component('page-not-found', {
|
|
template: '#page-not-found',
|
|
created: function () {
|
|
alert('404');
|
|
}
|
|
});
|
|
new Vue({
|
|
// App Root Element
|
|
el: '#app',
|
|
|
|
// App root data
|
|
data() {
|
|
return {
|
|
f7params: {
|
|
root: '#app',
|
|
theme: 'ios',
|
|
routes: [
|
|
{
|
|
path: '/home/',
|
|
component: 'home'
|
|
},
|
|
{
|
|
path: '/url1/',
|
|
component: 'foo'
|
|
},
|
|
{
|
|
path: '/url2/',
|
|
component: 'bar'
|
|
},
|
|
{
|
|
path: '(.*)',
|
|
component: 'page-not-found',
|
|
}
|
|
]
|
|
}
|
|
};
|
|
},
|
|
mounted() {
|
|
this.$f7ready((f7) => {
|
|
app = this.$f7;
|
|
});
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}); |