mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
feat(GCG): 添加 GCG 数据,目前只有简略的
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user