feat(GCG): 添加 GCG 数据,目前只有简略的

This commit is contained in:
BTMuli
2023-03-22 13:55:54 +08:00
parent ec0f207730
commit eec880bc7b
7 changed files with 1832 additions and 29 deletions

View File

@@ -5,7 +5,7 @@
* @since Alpha
*/
import { ConfigList } from "../data/init";
import { TGConfigList } from "../data";
// 数据库参数
export const DB_NAME = "TGData";
@@ -21,7 +21,7 @@ export async function InitTGData() {
request.onupgradeneeded = () => {
const db = request.result;
// 创建表
ConfigList.forEach(config => {
TGConfigList.forEach(config => {
const store = db.createObjectStore(config.storeName, {
keyPath: config.keyPath,
});