mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 17:54:32 +08:00
修复调试脚本语言判断
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user