diff --git a/packages/selenium-ide/src/browser/components/AppWrapper.tsx b/packages/selenium-ide/src/browser/components/AppWrapper.tsx index ba7a840d8..3166a57b9 100644 --- a/packages/selenium-ide/src/browser/components/AppWrapper.tsx +++ b/packages/selenium-ide/src/browser/components/AppWrapper.tsx @@ -32,7 +32,7 @@ const AppWrapper: FC = ({ children }) => { ) const [languageMap, setLanguageMap] = React.useState({}) React.useEffect(() => { - window.sideAPI.system.getLanguageMap().then((result) => { + window.sideAPI.system.getLanguageMap(true).then((result) => { console.log(result) setLanguageMap(result) }) diff --git a/packages/side-api/src/commands/system/getLanguageMap.ts b/packages/side-api/src/commands/system/getLanguageMap.ts index c7abffd4d..ac15a216a 100644 --- a/packages/side-api/src/commands/system/getLanguageMap.ts +++ b/packages/side-api/src/commands/system/getLanguageMap.ts @@ -1,4 +1,4 @@ /** * 获取语言设置字典 */ -export type Shape = () => Promise +export type Shape = (frontend?: boolean) => Promise