xieyezi

Results 32 comments of xieyezi

> 请问后端是哪里的代码? 用 yapi mock的

I upload them to github already: https://github.com/xieyezi/vue-vite-template/blob/vuex-modules/src/store/modules/about.ts

modules下面允许有modulds吧![Screenshot_2021-01-12-21-19-05-759_com.android.chrome.jpg](https://user-images.githubusercontent.com/16821989/104319429-d0c54800-551b-11eb-86e5-d88f283a6d79.jpg)

https://next.vuex.vuejs.org/guide/modules.html#module-local-state

@ibwei 对的,官方声称vueX-beta是有这个问题,他们说会在vueX5 版本里面完美解决这个问题,可以查看这个video https://www.youtube.com/watch?v=ajGglyQQD0k&ab_channel=VuejsAmsterdam

@ibwei 现在没有更好的实现方式,因为子module的类型对于父module来说,是dynamic的,vuex5会解决这个问题。具体可以看上个评论的视频。

我自己写了一个解决方案,完美支持composition API 和 typescript,有兴趣可以看看: https://github.com/xieyezi/genji

我也以为用了composition api😑

iponex 底部好像没做适配啊