Commit 1f23b2d3 authored by Chunchi Che's avatar Chunchi Che

update small

parent 1ec0ab57
Pipeline #23326 passed with stages
in 12 minutes and 46 seconds
......@@ -9,7 +9,7 @@ import { CardType } from "@/stores";
// TODO: 其实不是很推荐这样做,因为随着项目复杂度增加,这样可能会带来meta更新的时序问题
export const genCard = (card: CardType) => {
const t = proxy(card);
subscribeKey(t, "code", (code) => {
subscribeKey(t, "code", async (code) => {
const meta = fetchCard(code);
t.meta = meta;
});
......
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