Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vuejs-storage 能设置存储到不同存储方式吗? #29

Open
caihuattkl opened this issue Aug 2, 2019 · 1 comment
Open

vuejs-storage 能设置存储到不同存储方式吗? #29

caihuattkl opened this issue Aug 2, 2019 · 1 comment

Comments

@caihuattkl
Copy link

caihuattkl commented Aug 2, 2019

Why can't it be used like this?

plugins: [
vuejsStorage(
{
namespace: "superAdmin.sessionStorage",
driver: vuejsStorage.drivers.sessionStorage,
keys: ["token"]
},
{
namespace: "superAdmin.localStorage",
driver: vuejsStorage.drivers.localStorage,
keys: ["user"]
}
)
]

@caihuattkl caihuattkl changed the title vuejs-storage 不能同时设置存储到不同状态吗? vuejs-storage 不能同时设置存储到不同存储方式吗? Aug 2, 2019
@caihuattkl caihuattkl changed the title vuejs-storage 不能同时设置存储到不同存储方式吗? vuejs-storage 能设置存储到不同存储方式吗? Aug 2, 2019
@maple3142
Copy link
Owner

函數的簽名長這樣:`vuejsStorage(options) => VuePlugin所以你要把兩個 options 分別寫開來

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

No branches or pull requests

2 participants