Поправка бага
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user