修改代码

This commit is contained in:
ival 2021-04-08 17:34:47 +08:00
parent 6eb2ca001c
commit 04a0560339

View File

@ -8,7 +8,7 @@ class IndexedDb {
this.open(tableList);
}
init(tableList) {
open(tableList) {
const baseUrl = getBaseUrl();
const indexedDBName = baseUrl.replace(/http.?:\/\/(.*)[\/|:].*/, "$1");
const request = window.indexedDB.open(indexedDBName, 1);