Небольшие доработки

This commit is contained in:
Book Pauk
2020-10-29 23:39:13 +07:00
parent c35b2f3bfc
commit 8b59c72848

View File

@@ -410,11 +410,12 @@ class ExternalLibs extends Vue {
}
updateBookmarkLink() {
this.bookmarkLink = this.defaultRootLink;
const index = this.getRootIndexByUrl(rstore.libsDefaults.groups, this.bookmarkLink);
const index = this.getRootIndexByUrl(rstore.libsDefaults.groups, this.defaultRootLink);
if (index >= 0) {
this.bookmarkLink = rstore.libsDefaults.groups[index].s;
this.bookmarkDesc = this.getCommentByLink(rstore.libsDefaults.groups[index].list, this.bookmarkLink);
} else {
this.bookmarkLink = '';
this.bookmarkDesc = '';
}
}