dev/ckeditor
Lei OT 11 months ago
parent ba6e017ffd
commit c021cd162b

@ -700,7 +700,7 @@ export const writeIndexDB = (row, table, database) => {
var db = open.result var db = open.result
// 数据库是否存在 // 数据库是否存在
if (!db.objectStoreNames.contains(table)) { if (!db.objectStoreNames.contains(table)) {
var store = db.createObjectStore(table, { keyPath: 'id', autoIncrement: true }) var store = db.createObjectStore(table, { keyPath: 'key' })
store.createIndex('timestamp', 'timestamp', { unique: false }) store.createIndex('timestamp', 'timestamp', { unique: false })
} else { } else {
const objectStore = open.transaction.objectStore(table) const objectStore = open.transaction.objectStore(table)

Loading…
Cancel
Save