注释问题

This commit is contained in:
2025-10-23 15:04:00 +08:00
parent 028e3202bd
commit 95bc79b1d3
16 changed files with 713 additions and 32 deletions

View File

@@ -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) => {