| | |
| | | document.getElementById('root').className = option[window.GLOB.style] |
| | | } |
| | | |
| | | let mkDBUseable = false |
| | | if (process.env.NODE_ENV === 'production') { // 是否使用web存储 |
| | | mkDBUseable = options.sysType !== 'local' || window.GLOB.systemType === 'production' |
| | | } else { |
| | | mkDBUseable = true |
| | | } |
| | | |
| | | if (config.webStorage && mkDBUseable) { |
| | | let stor = config.webStorage.toLowerCase() |
| | | if (stor.indexOf('websql') > -1) { |
| | | window.GLOB.webSqlUsable = true |
| | | } else if (stor.indexOf('indexeddb') > -1) { |
| | | window.GLOB.IndexedDBUsable = true |
| | | } |
| | | } |
| | | |
| | | render(Route) |
| | | }) |
| | | |