Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

fix: resolve sessionStorage is not defined in some platforms #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PentaTea
Copy link

In some platforms, sessionStorage does not exist

image

image

@Allen-1998
Copy link

I guess you encountered this problem when using uniApp. I had the same problem before and created pinia-plugin-persist-uni based on this project to solve the problem.

It seems that your approach is not quite the same as mine, but you can refer to it.

docs

1 similar comment
@Allen-1998
Copy link

I guess you encountered this problem when using uniApp. I had the same problem before and created pinia-plugin-persist-uni based on this project to solve the problem.

It seems that your approach is not quite the same as mine, but you can refer to it.

docs

@codingcn
Copy link

我猜你在使用 uniApp 时遇到了这个问题。我之前也遇到过同样的问题, 基于这个项目创建了pinia-plugin-persist-uni来解决这个问题。

看来你的做法和我的不太一样,不过可以参考一下。

文档

I guess you encountered this problem when using uniApp. I had the same problem before and created pinia-plugin-persist-uni based on this project to solve the problem.

It seems that your approach is not quite the same as mine, but you can refer to it.

docs

nice!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants