This commit is contained in:
@ -76,7 +76,7 @@ Vue.component('multiselect', window.VueMultiselect.default)
|
||||
const app = new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
journey_id : window.location.pathname.slice(1) || gen_id(16),
|
||||
journey_id : window.location.pathname.split('/').at(-1) || gen_id(16),
|
||||
journey_step: window.location.hash.slice(1)==""?-1:parseInt(window.location.hash.slice(1)),
|
||||
journey_step_data: {day:-1, section:-1},
|
||||
journey_data : {
|
||||
@ -84,6 +84,7 @@ const app = new Vue({
|
||||
main:[],
|
||||
step_title:[],
|
||||
},
|
||||
view: window.location.pathname.split('/').at(1),
|
||||
query:{hotel:[],flight:[],nominatim:[]},
|
||||
querying:{hotel:false,flight:false,place:false,food:false},
|
||||
impexp:"",
|
||||
@ -106,6 +107,7 @@ const app = new Vue({
|
||||
prev_step: function(){
|
||||
this.journey_step-=1;
|
||||
if(this.journey_step<-1) this.journey_step=-1;
|
||||
if(this.journey_step==-1 && this.view) this.journey_step=0;
|
||||
this.journey_step_data = this.step_convert(this.journey_step);
|
||||
window.location.hash = '#' + this.journey_step;
|
||||
|
||||
|
Reference in New Issue
Block a user