Commit 8cb153a7 authored by 皮倩雯's avatar 皮倩雯

修改富文本样式

parent 78934a8b
Pipeline #60139 passed with stages
......@@ -30,7 +30,6 @@ import { PlusOutlined, LoadingOutlined } from '@ant-design/icons';
import { get, PUBLISH_SERVICE } from '@/services';
import PreviewModal from './PreviewModal';
const { Item } = Form;
const { TextArea } = Input;
const modules = {
toolbar: [
[{ header: [1, 2, 3, 4, 5, 6, false] }],
......@@ -57,16 +56,6 @@ const AddModal = props => {
const [optionslist, setOptionsList] = useState([]);
const [keepLength, setKeeplength] = useState('');
const [fileList, setFileList] = useState([]);
// const [formats, setFormats] = useState([
// 'bold',
// 'italic',
// 'underline',
// 'strike',
// 'blockquote',
// 'list',
// 'bullet',
// 'indent',
// ]);
const { Option } = Select;
......@@ -245,7 +234,6 @@ const AddModal = props => {
if (validate) {
setLoading(true);
let obj = form.getFieldsValue();
console.log(obj);
if (obj.internetAddress || obj.intranetAddress) {
if (obj.accountParamValue == '熊猫ticket') {
obj.accountParamValue = 1;
......@@ -253,7 +241,6 @@ const AddModal = props => {
obj.accountParamValue = 2;
}
let aa = { key: obj.accountParamKey, value: obj.accountParamValue };
console.log(aa);
let bb = [];
bb.push(aa);
if (obj.iconUrl.file) {
......@@ -263,7 +250,6 @@ const AddModal = props => {
if (obj.coordinate) {
data = obj.coordinate.split(',');
}
console.log(fileList);
let dataList = [];
if (fileList.length > 0) {
fileList.map(i => {
......@@ -273,7 +259,6 @@ const AddModal = props => {
dataList.push(i.response.data);
}
});
console.log(dataList);
}
if (type === 'add') {
AddIntegratedLogin({
......@@ -763,14 +748,13 @@ const AddModal = props => {
{fileList.length >= 3 ? null : uploadButton1}
</Upload>
</Item>
<Item label="站点详情" name="siteDescription">
{/* <TextArea /> */}
<Item label="站点简介" name="siteDescription">
<ReactQuill
style={{ height: '150px' }}
placeholder="请输入内容"
theme="snow" // 主题
modules={modules}
onChange={onQuillChange}
// formats={formats}
/>
</Item>
</>
......
......@@ -95,3 +95,4 @@
.ant-popover-message > .anticon {
margin-top: 6px;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment