摘要: import React, { useState } from 'react'import { Cascader } from 'antd'import options from '../../utils/cities'export default f... 阅读全文
posted @ 2021-07-08 16:01 徐同保 阅读(910) 评论(0) 推荐(0) 编辑
摘要: common.js: import axios from 'axios'import { message } from 'antd'import { baseURL } from '../utils/config'import qs from 'qs'imp... 阅读全文
posted @ 2021-07-08 15:41 徐同保 阅读(19) 评论(0) 推荐(0) 编辑
摘要: import React, { useEffect, useState, useMemo } from 'react'import { Menu } from 'antd'import { connect } from 'react-redux'import ... 阅读全文
posted @ 2021-07-08 15:33 徐同保 阅读(1175) 评论(0) 推荐(0) 编辑
摘要: useHistory The useHistory hook gives you access to the history instance that you may use to navigate. import { useHistory } from ... 阅读全文
posted @ 2021-07-08 15:25 徐同保 阅读(967) 评论(0) 推荐(0) 编辑
摘要: import React, { useState, useEffect } from 'react'import { EditorState, convertToRaw, ContentState, Modifier } from 'draft-js'impo... 阅读全文
posted @ 2021-07-08 15:05 徐同保 阅读(207) 评论(0) 推荐(0) 编辑
摘要: import React from 'react'import { html2json, json2html } from 'html2json'export default function Index() { const data = ` ` c... 阅读全文
posted @ 2021-07-08 14:42 徐同保 阅读(886) 评论(0) 推荐(0) 编辑