在钉钉内前端代码发版更新后,安卓机应用并没有执行最新代码
<!-- 为清除浏览器缓存 -->
<meta http-equiv="pragram" content="no-cache">
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
在项目的public目录下的index.html文件中增加这段代码
background渐变色的高度不固定
background-repeat: no-repeat; background-size: 100% 280.8rem; background-image: linear-gradient(to bottom, #1a77ff, whitesmoke 5%);
钉钉导航栏设置颜色
在钉钉后台应用配置路由加参数?dd_nav_bgcolor=FF1A77FF
存在问题是:安卓机点击返回按钮后会失效
目前解决办法是:
const query = { dd_nav_bgcolor: 'FF1A77FF' }
// 修改底层方法
const transitionTo = router.history.transitionTo // 临时存储底层方法
router.history.transitionTo = function(location, onComplete, onAbort) {
location = typeof location === 'object' ? { ...location, query: { ...location.query, ...query }} : { path: location, query }
transitionTo.call(router.history, location, onComplete, onAbort)
}