king
2021-10-24 42f07f34717a9c20914b75fe7c1a8212766e970d
2021-10-24
4个文件已修改
26 ■■■■ 已修改文件
src/api/cacheutils.js 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/header/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/commontable/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/cacheutils.js
@@ -43,6 +43,26 @@
  }
  /**
   * @description 清空函数
   */
  static clearFuncs (sysType) {
    if (sysType !== 'local' || window.GLOB.systemType !== '') return
    if (window.GLOB.WebSql) {
      window.GLOB.WebSql.transaction(tx => {
        tx.executeSql('DELETE FROM FUNCS')
        tx.executeSql(`UPDATE VERSIONS SET createDate='1970-01-01 14:59:09.000' where CDefine1='funcs'`)
      })
    } else if (window.GLOB.IndexDB) {
      let objectStore = window.GLOB.IndexDB.transaction(['funcs'], 'readwrite').objectStore('funcs')
      objectStore.clear()
      let funcStore = window.GLOB.IndexDB.transaction(['version'], 'readwrite').objectStore('version')
      funcStore.put({id: 'funcs', version: '1.0', createDate: '1970-01-01 14:59:09.000'})
    }
  }
  /**
   * @description 获取websql中保存信息版本
   */
  static getWebSqlVersion () {
src/api/index.js
@@ -403,6 +403,7 @@
    CacheUtils.updateWebSqlversion('1.00', curTime)
    CacheUtils.clearIndexDBConfig()
    CacheUtils.updateIndexDBversion({version: '1.00', createDate: curTime})
    CacheUtils.clearFuncs(options.sysType)
  }
  /**
src/components/header/index.jsx
@@ -629,7 +629,7 @@
          if (!window.GLOB.WebSql && !window.GLOB.IndexDB) {
            notification.warning({
              top: 92,
              message: '升级失败,请刷新页面重试!',
              message: '更新失败,请刷新页面重试!',
              duration: 2
            })
            resolve()
@@ -638,7 +638,7 @@
            setTimeout(() => {
              notification.success({
                top: 92,
                message: '升级成功!',
                message: '更新成功!',
                duration: 2
              })
              resolve()
src/tabviews/commontable/index.jsx
@@ -398,7 +398,6 @@
          }
        })
      }
      console.log(config)
      this.setState({
        loadingview: false,