mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-22 04:54:32 +08:00
支持多语言英文
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import intl from 'react-intl-universal';
|
||||
import React, { useEffect, useState, useRef } from 'react';
|
||||
import { Drawer, Button, Tabs, Badge, Select, TreeSelect } from 'antd';
|
||||
import { request } from '@/utils/http';
|
||||
@@ -161,7 +162,7 @@ const EditModal = ({
|
||||
value={selectedKey}
|
||||
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
|
||||
treeData={treeData}
|
||||
placeholder="请选择脚本文件"
|
||||
placeholder={intl.get('请选择脚本文件')}
|
||||
fieldNames={{ value: 'key', label: 'title' }}
|
||||
showSearch
|
||||
onSelect={onSelect}
|
||||
@@ -183,7 +184,7 @@ const EditModal = ({
|
||||
style={{ marginRight: 8 }}
|
||||
onClick={isRunning ? stop : run}
|
||||
>
|
||||
{isRunning ? '停止' : '运行'}
|
||||
{isRunning ? intl.get('停止') : intl.get('运行')}
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
@@ -192,7 +193,7 @@ const EditModal = ({
|
||||
setLog('');
|
||||
}}
|
||||
>
|
||||
清空日志
|
||||
{intl.get('清空日志')}
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
@@ -201,7 +202,7 @@ const EditModal = ({
|
||||
setSettingModalVisible(true);
|
||||
}}
|
||||
>
|
||||
设置
|
||||
{intl.get('设置')}
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
@@ -210,7 +211,7 @@ const EditModal = ({
|
||||
setSaveModalVisible(true);
|
||||
}}
|
||||
>
|
||||
保存
|
||||
{intl.get('保存')}
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
@@ -220,7 +221,7 @@ const EditModal = ({
|
||||
handleCancel();
|
||||
}}
|
||||
>
|
||||
退出
|
||||
{intl.get('退出')}
|
||||
</Button>
|
||||
</>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user