Поправка бага

This commit is contained in:
Book Pauk
2022-11-01 00:34:30 +07:00
parent d46d153416
commit a38ba2fd9a
2 changed files with 4 additions and 1 deletions

View File

@@ -180,7 +180,7 @@ export default class BaseList {
} else if (action == 'readBook') { } else if (action == 'readBook') {
//читать //читать
if (this.list.liberamaReady) { if (this.list.liberamaReady) {
this.sendMessage({type: 'submitUrl', data: href}); this.$emit('listEvent', {action: 'submitUrl', data: href});
} else { } else {
const url = this.config.bookReadLink.replace('${DOWNLOAD_LINK}', href); const url = this.config.bookReadLink.replace('${DOWNLOAD_LINK}', href);
window.open(url, '_blank'); window.open(url, '_blank');

View File

@@ -851,6 +851,9 @@ class Search {
case 'scrollToTop': case 'scrollToTop':
this.scrollToTop(); this.scrollToTop();
break; break;
case 'submitUrl':
this.sendMessage({type: 'submitUrl', data: event.data});
break;
} }
} }