vue-check-version
v1.0.2
Published
用于检查版本是否更新的一个小工具
Downloads
9
Readme
用于检查版本号是否已更新的 JavaScript 小工具
使用流程
- 通过 import { checkVersion } from 'check_version'引入
- 通常将引入的函数放在路由前置守卫中或者在接口请求工具中的请求拦截中
- 传入两个参数:环境变量和开发环境所代表的字段
- 在 index.html 文件中加入 meta 标签,meta 标签 content 内容为项目版本号
注意事项
- ❌ 暂时只适配 vue 项目