| | |
| | | /** |
| | | * @description 获取系统版本信息,启用或更新websql |
| | | */ |
| | | getAppVersion (_resolve, _reject) { |
| | | getAppVersion (reload) { |
| | | if (!window.GLOB.WebSql && !window.GLOB.IndexDB) { |
| | | return Promise.reject() |
| | | } |
| | |
| | | CacheUtils.updateWebSqlversion('1.00', curTime) |
| | | resolve() |
| | | return |
| | | } else if (!msg.createDate) { |
| | | } else if (!msg.createDate || reload) { |
| | | param.modifydate = curTime |
| | | param.menuids = window.btoa(msg.menuids) |
| | | } else if (msg.menuids) { |
| | |
| | | CacheUtils.updateIndexDBversion({version: '1.00', createDate: curTime}) |
| | | resolve() |
| | | return |
| | | } else if (!msg.createDate) { |
| | | } else if (!msg.createDate || reload) { |
| | | param.modifydate = curTime |
| | | param.menuids = window.btoa(msg.menuids) |
| | | } else if (msg.menuids) { |