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

想请问下state文件夹里index.ts的StoreState表示的是什么意思 #7

Closed
k-kaikai opened this issue Apr 9, 2018 · 4 comments

Comments

@k-kaikai
Copy link

k-kaikai commented Apr 9, 2018

No description provided.

@jkchao
Copy link
Owner

jkchao commented Apr 9, 2018

https://github.com/jkchao/vue-admin/blob/master/src/typings/store.d.ts#L1

我把 vuex modules 里的 state 都放到 typings 里了。
现在看来,当项目大了以后,还是没必要提出来。😂

@k-kaikai
Copy link
Author

hahaha 没注意看 明白了 谢谢~

@wwb568109135
Copy link

https://github.com/jkchao/vue-admin/blob/master/src/typings/store.d.ts#L1

我把 vuex modules 里的 state 都放到 typings 里了。
现在看来,当项目大了以后,还是没必要提出来。😂

你的意思是说,单独写每个vuex的state里面

@jkchao
Copy link
Owner

jkchao commented May 12, 2018

@wwb568109135 是的,写到每个 modules 里面,同时给 state 定义的 interface 需要 export 出去,需要给一些组件用。

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

3 participants