历史版本文档
Appearance
在应用配置中设置:
const globalSettings: Settings.all = { app: { /** * 是否开启检查更新 * @默认值 `false` */ enableCheckUpdates: true }, }
效果如下:
框架默认采用轮询请求 index.html,并获取响应头中的 etag 或 last-modified 作为版本标识的方法来判断页面是否有更新。
index.html
etag
last-modified
你也可以修改 /src/ui/components/KpuCheckUpdates/index.vue 文件中的 getVersionTag 方法,实现自定义检查更新。
/src/ui/components/KpuCheckUpdates/index.vue
getVersionTag