-
1. umi中的配置
extraBabelPlugins: [
["react-activation/babel", { }, 'react-activation/babel']
],
2.此plugin是动态给KeepAlive增加cacheKey,防止在开发环境中热更新又重复执行,getCachingNodes中会存在两个一模一样的node。
-
umi3.5.18
参照https://alitajs.com/plugins/cordova
```
export default {
plugins: [['@alitajs/cordova', options]],
};
```
.umirc里面,不知道options是什么,但是填不填options都会报plugins应为array,这里我最终填的`plugins:…
-
plugins: ['@alitajs/hd'],
hd: {
'px2rem': {
rootValue: 100
}
},
或者
hd: {}
在在iPhone6下都是font-size为50px
-
开启多tabs页面
然后跑编译
登录进入首页
报错且白屏
我估计跟多tabs有关系,就提到这里了
![image](https://user-images.githubusercontent.com/23204297/190983249-cf9f09cb-1476-475e-bea8-e21e25dea0e8.png)
![image](https://us…
-
很抱歉打扰到你,
我尝试调试和查阅了很久,看了@alitajs/tabs-layout
我现在想的是用umi-plugin-keep-alive同时把我的umi升到@3来尝试下,这个稳定么,或者大佬现在有更好的方案了吗
-
1. 点击浏览器刷新,缓存当前所有的tab
2. 右键附加功能,包括:刷新、关闭其他、关闭所有。。。。
3. tab栏始终保持有home页路由,home页路由不能关闭删除
-
[codesandbox 代码重现 ](https://codesandbox.io/p/github/ZhengXinquan/test-umi-keepalive/csb-fpesid/draft/jovial-gwen?file=%2Fsrc%2Fpages%2FHome%2Findex.tsx&workspace=%257B%2522activeFileId%2522%253A%2522c…
-
### 🧐 问题描述 | 6版本自定义tabs问题
首先为了多tabs 我直接升级到6,用的很难受,我用的以前的路由获取方式,props无法获取,match,更改了hook
其次,我是动态路由,更改menu需要语义化,更改menu:false 此版本无效..;不得不卸载掉语义化,结果多页tabs又空值,
我想自定义,没地方插入,开启hasCustomTabs 就是需要getCusto…
-
尝试的umi-plugin-cache-route好像只提供了清除缓存的方式没有添加缓存的方式,然后通过改变路由的keepalive去做添加缓存发现第二次进入没缓存第三次进入缓存生效;我看@alitajs/keep-alive这个插件是有动态添加的功能的,是不是只支持umi3.x功能?
-
现在tabsLayout是以键值对的方式进行配置的,键是path,值是tabs上的文字。
如: '/home' : '首页'
但如果采用的是动态路由的话,目前把动态路由作为字符串的话会导致匹配失败。
如: 'users/:userId': '用户'
所以需要对这种情况进行支持