注释问题
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
/*
|
||||
* @Date: 2025-10-23 14:48:48
|
||||
* @LastEditors: shirlwang
|
||||
* @LastEditTime: 2025-10-23 15:02:32
|
||||
*/
|
||||
// BaseStore.js - 基础Store类
|
||||
import IndexedDBHelper from '@/common/IndexedDBHelper.js'
|
||||
// import UniStorageHelper from '../common/UniStorageHelper'
|
||||
@@ -36,27 +41,27 @@ class BaseStore {
|
||||
// // #ifndef H5
|
||||
// this.db = new UniStorageHelper(this.dbName, config.DBversion);
|
||||
// // #endif
|
||||
this.db.openDB([{
|
||||
name: 'record',
|
||||
keyPath: "id",
|
||||
autoIncrement: true,
|
||||
}, {
|
||||
name: 'messageGroup',
|
||||
keyPath: "id",
|
||||
autoIncrement: true,
|
||||
}, {
|
||||
name: 'messages',
|
||||
keyPath: "id",
|
||||
autoIncrement: true,
|
||||
indexes: [{
|
||||
name: 'parentGroupId',
|
||||
key: 'parentGroupId',
|
||||
unique: false
|
||||
}]
|
||||
}]).then(async () => {
|
||||
useChatGroupDBStore().init()
|
||||
this.isDBReady = true
|
||||
});
|
||||
// this.db.openDB([{
|
||||
// name: 'record',
|
||||
// keyPath: "id",
|
||||
// autoIncrement: true,
|
||||
// }, {
|
||||
// name: 'messageGroup',
|
||||
// keyPath: "id",
|
||||
// autoIncrement: true,
|
||||
// }, {
|
||||
// name: 'messages',
|
||||
// keyPath: "id",
|
||||
// autoIncrement: true,
|
||||
// indexes: [{
|
||||
// name: 'parentGroupId',
|
||||
// key: 'parentGroupId',
|
||||
// unique: false
|
||||
// }]
|
||||
// }]).then(async () => {
|
||||
// useChatGroupDBStore().init()
|
||||
// this.isDBReady = true
|
||||
// });
|
||||
}
|
||||
async clearDB() {
|
||||
return new Promise((resolve, rejetc) => {
|
||||
|
||||
Reference in New Issue
Block a user