set default country and some styling
This commit is contained in:
80
resources/assets/js/wizard.js
vendored
80
resources/assets/js/wizard.js
vendored
@ -1,4 +1,3 @@
|
||||
|
||||
require('./bootstrap');
|
||||
|
||||
import Vue from 'vue';
|
||||
@ -21,47 +20,48 @@ const router = new VueRouter({
|
||||
mode: 'history',
|
||||
base: base_path,
|
||||
routes: [
|
||||
{
|
||||
path: '/wizard',
|
||||
name: 'Wizard',
|
||||
component: Company
|
||||
},
|
||||
{
|
||||
path: '/wizard/companies',
|
||||
name: 'Company',
|
||||
component: Company
|
||||
},
|
||||
{
|
||||
path: '/wizard/currencies',
|
||||
name: 'Currencies',
|
||||
component: Currencies
|
||||
},
|
||||
{
|
||||
path: '/wizard/taxes',
|
||||
name: 'Taxes',
|
||||
component: Taxes
|
||||
},
|
||||
{
|
||||
path: '/wizard/finish',
|
||||
name: 'Finish',
|
||||
component: Finish
|
||||
}
|
||||
],
|
||||
linkActiveClass: 'active',
|
||||
scrollBehavior: (to, from ,savedPosition) => {
|
||||
if (savedPosition) {
|
||||
return savedPosition;
|
||||
{
|
||||
path: '/wizard',
|
||||
name: 'Wizard',
|
||||
component: Company
|
||||
},
|
||||
{
|
||||
path: '/wizard/companies',
|
||||
name: 'Company',
|
||||
component: Company
|
||||
},
|
||||
{
|
||||
path: '/wizard/currencies',
|
||||
name: 'Currencies',
|
||||
component: Currencies
|
||||
},
|
||||
{
|
||||
path: '/wizard/taxes',
|
||||
name: 'Taxes',
|
||||
component: Taxes
|
||||
},
|
||||
{
|
||||
path: '/wizard/finish',
|
||||
name: 'Finish',
|
||||
component: Finish
|
||||
}
|
||||
],
|
||||
linkActiveClass: 'active',
|
||||
scrollBehavior: (to, from ,savedPosition) => {
|
||||
if (savedPosition) {
|
||||
return savedPosition;
|
||||
}
|
||||
|
||||
if (to.hash) {
|
||||
return { selector: to.hash };
|
||||
}
|
||||
|
||||
return { x: 0, y: 0 };
|
||||
}
|
||||
if (to.hash) {
|
||||
return { selector: to.hash };
|
||||
}
|
||||
return { x: 0, y: 0 };
|
||||
}
|
||||
});
|
||||
|
||||
new Vue({
|
||||
el : '#app',
|
||||
router,
|
||||
render: h => h(Wizard),
|
||||
el : '#app',
|
||||
router,
|
||||
render: h => h(Wizard),
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user