mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-14 04:50:50 +08:00
支持多语言英文
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import intl from 'react-intl-universal';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Modal, message, Input, Form } from 'antd';
|
||||
import { request } from '@/utils/http';
|
||||
@@ -43,7 +44,7 @@ const RenameModal = ({
|
||||
|
||||
return (
|
||||
<Modal
|
||||
title="重命名"
|
||||
title={intl.get('重命名')}
|
||||
open={visible}
|
||||
forceRender
|
||||
centered
|
||||
@@ -64,9 +65,9 @@ const RenameModal = ({
|
||||
<Form form={form} layout="vertical" name="edit_name_modal">
|
||||
<Form.Item
|
||||
name="name"
|
||||
rules={[{ required: true, message: '请输入新名称' }]}
|
||||
rules={[{ required: true, message: intl.get('请输入新名称') }]}
|
||||
>
|
||||
<Input placeholder="请输入新名称" />
|
||||
<Input placeholder={intl.get('请输入新名称')} />
|
||||
</Form.Item>
|
||||
</Form>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user