diff --git a/src/App.js b/src/App.js index 522c4e7..2f6a132 100644 --- a/src/App.js +++ b/src/App.js @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React, { useState, Fragment } from "react"; import { Tabs, Tag, Button, Table, Empty, message, Collapse } from "antd"; import marked from "marked"; import hljs from "highlight.js"; @@ -6,7 +6,7 @@ import "highlight.js/styles/github.css"; import { copy } from "./utils"; import db from "./db/db"; -import { LEETCODE_CN_URL, LEETCODE_URL } from "./constant/index"; +import { LEETCODE_CN_URL, LEETCODE_URL, ISSUES_URL } from "./constant/index"; import "antd/dist/antd.css"; import "./App.css"; @@ -118,7 +118,13 @@ function App() { {problems[problemId].keyPoints.map(({ id, link, text, color }) => ( - + ))} @@ -147,11 +153,12 @@ function App() { @@ -187,7 +194,14 @@ function App() { - {problems[problemId].company.map((c) => c.name).join(",")} + {problems[problemId].company.map((c) => c.name).join(",") || ( + + 暂无公司资料, + + 点击反馈 + + + )}