Commit 50217ee8 authored by Chunchi Che's avatar Chunchi Che

update forbiddenstore

parent d36d2caf
Pipeline #23038 failed with stages
in 13 minutes and 11 seconds
......@@ -17,6 +17,11 @@ class ForbiddenStore {
this.time = time;
this.inner = forbiddens;
}
// 获取禁限信息
get(id: number) {
return this.inner.get(id);
}
}
// 解析函数,提取卡片编号和限制张数
......
......@@ -30,7 +30,7 @@ import { subscribeKey } from "valtio/utils";
import { type CardMeta, searchCards } from "@/api";
import { isExtraDeckCard, isToken } from "@/common";
import { FtsConditions } from "@/middleware/sqlite/fts";
import { deckStore, type IDeck, initStore } from "@/stores";
import { deckStore, forbiddenStore, type IDeck, initStore } from "@/stores";
import {
Background,
IconFont,
......@@ -66,6 +66,9 @@ export const loader: LoaderFunction = async () => {
subscribeKey(initStore, "decks", (done) => done && rs());
});
}
// 加载禁限卡表
await forbiddenStore.init();
return null;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment