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

我在国际化里面用到了userStore 然后刷新页面就到了login页面 #171

Open
732124645 opened this issue Apr 9, 2024 · 0 comments

Comments

@732124645
Copy link

在国际化里面使用userStore,刷新页面就到了login页面

Steps to reproduce(问题复现步骤)

我在@/locales/index.ts文件里面使用了userStore,只要一刷新页面,页面就到了登录页面。如果把这段代码去了再刷新,就恢复正常了。

import { useUserStoreWithOut } from '@/store/modules/user';
const userStore = useUserStoreWithOut();

image

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

1 participant