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