mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复调试脚本语言判断
This commit is contained in:
parent
eb58774ee9
commit
ac075ace73
|
@ -147,7 +147,7 @@ const EditModal = ({
|
|||
setCNode(currentNode);
|
||||
setValue(content as string);
|
||||
setSelectedKey(currentNode.key);
|
||||
const newMode = LangMap[value.slice(-3)] || '';
|
||||
const newMode = LangMap[currentNode.title.slice(-3)] || '';
|
||||
setLanguage(newMode);
|
||||
}
|
||||
}, [content, currentNode]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user