From ea69a9e8a7c1cf08f512e6eeeb6d8eb786e60518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=9A=E5=AD=90?= <250655604@qq.com> Date: Thu, 2 Jan 2020 13:09:18 +0800 Subject: [PATCH] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6666a2e..1c85bb9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -58,7 +58,7 @@ export class VuexPersistence implements PersistOptions { // @ts-ignore if (process.env.NODE_ENV === 'production') { - this.storage = options.storage || window.localStorage + this.storage = new MockStorage } else { // @ts-ignore if (process.env.MODULE_FORMAT !== 'umd') {