好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

vue3 + vuex4.0 + typescript 使用详情

原文 https://blog.csdn.net/fanweilin0123/article/details/109903447

注意点:

const TestModule: Module<TestModulesTypes, RootStateTypes> = { 中的 TestModulesTypes 和 RootStateTypes 的顺序。 原文中store/interface.ts的 testModules 和store/index.ts引入时的 testModules 名称保持一致

参考原文和注意以上两点应该就不会有ts的错误提示了

查看更多关于vue3 + vuex4.0 + typescript 使用详情的详细内容...

  阅读:52次