Improve readavility

This commit is contained in:
syuilo 2019-09-02 05:52:38 +09:00
parent b0f2b209a2
commit dc11f1afbf
1 changed files with 8 additions and 7 deletions

View File

@ -244,13 +244,14 @@ export default Vue.extend({
}, },
goRoot(silent = false) { goRoot(silent = false) {
if (this.folder || this.file) { // root
if (this.folder == null && this.file == null) return;
this.file = null; this.file = null;
this.folder = null; this.folder = null;
this.hierarchyFolders = []; this.hierarchyFolders = [];
this.$emit('move-root', silent); this.$emit('move-root', silent);
this.fetch(); this.fetch();
}
}, },
fetch() { fetch() {