@szlx/update-manager
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@szlx/update-manager

更新应用包统一函数

Installtion

npm i @szlx/update-manager

Usage

import updateManager from '@szlx/update-manager'

updateManager({
  title: '新版本提示',
  content: '检测到新版本',
  failContent: '新版本下载失败',
  onSuccess: () => {}, // 成功回调
  onCheckForUpdate: res => (res.hasUpdate ? '有新版本' : '无新版本')
})

Readme

Keywords

none

Package Sidebar

Install

npm i @szlx/update-manager

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.5 kB

Total Files

6

Last publish

Collaborators

  • szlx