0.0.8 • Published 8 months ago

vue2-update-listener v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

vue2-update-listener

需配合 vue-cli-plugin-update-listener 使用

使用说明

1. npm install vue2-update-listener --save-dev
2. 入口文件main.js或者其他全局文件中导入:

import UpdateListenerLoader from 'vue2-update-listener'

import 'vue2-update-listener/lib/vue2-update-listener.css'

Vue.use(UpdateListenerLoader, {
  // ...options 配置
})

配置说明

参数类型说明
versionUrlString请求版本信息根目录路径,默认为'/dist'
intervalNumber检查更新间隔时间,默认为5分钟,单位为毫秒
isTipBoolean是否提示更新,默认为true
isListenJSErrorBoolean是否监听JS报错,默认为false
modalPropsObject弹窗配置
modalProps.contentString弹窗内容
modalProps.mountedElElement弹窗挂载节点,默认为body
typeString弹窗样式类型,默认为'qingmu', 可选值为'element'、'qingmu'、'custom'(暂不支持)
showTestBoolean弹窗常显测试
refreshSameOriginBoolean是否刷新同源页面,默认为true
0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago