mirror of
https://github.com/go-shiori/shiori.git
synced 2025-02-22 23:14:02 +08:00
Fix delete all not updated
This commit is contained in:
parent
81de2951b9
commit
1dcc663039
1 changed files with 3 additions and 2 deletions
|
@ -367,8 +367,9 @@
|
||||||
|
|
||||||
var scrollIdx = smallestIndex === 1 ? 1 : smallestIndex - 1;
|
var scrollIdx = smallestIndex === 1 ? 1 : smallestIndex - 1;
|
||||||
app.$nextTick(function () {
|
app.$nextTick(function () {
|
||||||
var el = app.$refs['bookmark-' + scrollIdx];
|
var el = app.$refs['bookmark-' + smallestIndex][0];
|
||||||
if (el) el[0].scrollIntoView();
|
if (el) el.scrollIntoView();
|
||||||
|
else window.scrollTo(0, 0);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
|
|
Loading…
Reference in a new issue