Skip to content

Commit b1df79d

Browse files
revert
1 parent 95bfa6d commit b1df79d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/search/search.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ export function init(config, vm) {
289289

290290
const isExpired = localStorage.getItem(expireKey) < Date.now();
291291

292-
INDEXS = isExpired ? null : JSON.parse(localStorage.getItem(indexKey));
292+
INDEXS = JSON.parse(localStorage.getItem(indexKey));
293293

294-
if (!INDEXS) {
294+
if (isExpired) {
295295
INDEXS = {};
296296
} else if (!isAuto) {
297297
return;

0 commit comments

Comments
 (0)