Force projet if on blog mode
This commit is contained in:
@@ -83,6 +83,9 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
inject: ['api', 'lang', 'hash', 'projects', 'user', 'consts', 'isMobile'],
|
inject: ['api', 'lang', 'hash', 'projects', 'user', 'consts', 'isMobile'],
|
||||||
|
beforeMount() {
|
||||||
|
if(this.hash.items.length == 0 && this.projects.getDefaultProject().mode == this.consts.modes.blog) this.hash.items[0] = this.projects.getDefaultCodeName();
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
@@ -98,8 +101,8 @@ export default {
|
|||||||
'hitchhiking': this.getStyleProperty('--track-hitchhiking')
|
'hitchhiking': this.getStyleProperty('--track-hitchhiking')
|
||||||
};
|
};
|
||||||
|
|
||||||
if(!this.hash.items[0] || !this.projects[this.hash.items[0]]) await this.initProjectOverview();
|
if(this.hash.items[0] && this.projects[this.hash.items[0]]) await this.initProject();
|
||||||
else await this.initProject();
|
else await this.initProjectOverview();
|
||||||
},
|
},
|
||||||
quit() {
|
quit() {
|
||||||
this.lightbox.end();
|
this.lightbox.end();
|
||||||
|
|||||||
Reference in New Issue
Block a user