在UMi4中使用dva
时间: 2024-03-07 12:18:48 浏览: 247
在UMi4中使用dva的方法有以下几个步骤:
1. 首先,在UMi4中,不再内置dva插件,需要手动配置。你可以在项目的配置文件中,添加一个"dva"的配置项,值为一个空对象{}。但是需要注意,如果你在配置中加上"dva:{}"后,运行会报错"Invalid config keys: dva"。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [UmiJS4非Umi Max开启Dva及其他插件的方法](https://blog.csdn.net/catalike/article/details/126391634)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [umi4全局dva](https://blog.csdn.net/weixin_46600931/article/details/130730963)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文