Commit e09e4757 authored by Chunchi Che's avatar Chunchi Che

fix hint

parent 170077ea
Pipeline #23305 passed with stages
in 12 minutes and 9 seconds
......@@ -5,11 +5,9 @@ import { cardStore } from "@/stores/cardStore";
import { matStore } from "../store";
const { hint } = matStore;
export const fetchCommonHintMeta = (code: number) => {
hint.code = code;
hint.msg = fetchStrings(Region.System, code);
matStore.hint.code = code;
matStore.hint.msg = fetchStrings(Region.System, code);
};
export const fetchSelectHintMeta = async ({
......@@ -31,13 +29,13 @@ export const fetchSelectHintMeta = async ({
selectHintMeta = await getStrings(selectHintData);
}
hint.code = selectHintData;
if (hint.code > DESCRIPTION_LIMIT) {
matStore.hint.code = selectHintData;
if (matStore.hint.code > DESCRIPTION_LIMIT) {
// 针对`MSG_SELECT_PLACE`的特化逻辑
hint.msg = selectHintMeta;
matStore.hint.msg = selectHintMeta;
} else {
hint.esSelectHint = selectHintMeta;
hint.esHint = esHint;
matStore.hint.esSelectHint = selectHintMeta;
matStore.hint.esHint = esHint;
}
};
......@@ -74,5 +72,5 @@ export const fetchEsHintMeta = async ({
}
}
hint.esHint = esHint;
matStore.hint.esHint = esHint;
};
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