mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-18 02:14:32 +08:00
系统设置增加依赖代理和镜像设置
This commit is contained in:
@@ -15,6 +15,7 @@ import CodeMirror from '@uiw/react-codemirror';
|
||||
import { useOutletContext } from '@umijs/max';
|
||||
import { SharedContext } from '@/layouts';
|
||||
import { langs } from '@uiw/codemirror-extensions-langs';
|
||||
import { useHotkeys } from 'react-hotkeys-hook';
|
||||
|
||||
const Config = () => {
|
||||
const { headerStyle, isPhone, theme } = useOutletContext<SharedContext>();
|
||||
@@ -68,6 +69,14 @@ const Config = () => {
|
||||
getConfig(node.value);
|
||||
};
|
||||
|
||||
useHotkeys(
|
||||
'meta+s',
|
||||
(e) => {
|
||||
updateConfig();
|
||||
},
|
||||
{ enableOnFormTags: ['textarea'], preventDefault: true },
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
getFiles();
|
||||
getConfig('config.sh');
|
||||
|
||||
Reference in New Issue
Block a user