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'],
|
||||
beforeMount() {
|
||||
if(this.hash.items.length == 0 && this.projects.getDefaultProject().mode == this.consts.modes.blog) this.hash.items[0] = this.projects.getDefaultCodeName();
|
||||
},
|
||||
mounted() {
|
||||
this.init();
|
||||
},
|
||||
@@ -98,8 +101,8 @@ export default {
|
||||
'hitchhiking': this.getStyleProperty('--track-hitchhiking')
|
||||
};
|
||||
|
||||
if(!this.hash.items[0] || !this.projects[this.hash.items[0]]) await this.initProjectOverview();
|
||||
else await this.initProject();
|
||||
if(this.hash.items[0] && this.projects[this.hash.items[0]]) await this.initProject();
|
||||
else await this.initProjectOverview();
|
||||
},
|
||||
quit() {
|
||||
this.lightbox.end();
|
||||
|
||||
Reference in New Issue
Block a user