完成审核页面,对样式做大量微调(视觉的按钮好怪啊),但是目前发现了请求处理等待流程的bug

This commit is contained in:
2021-08-01 00:11:33 +08:00
parent a1386d8870
commit b8f99f4e4c
16 changed files with 249 additions and 118 deletions

View File

@@ -1,13 +1,3 @@
.banner {
height: 80px;
width: 100%;
display: flex;
justify-content: space-between;
padding: 10px 80px;
box-sizing: border-box;
background-color: #9D0004;
}
.message-box {
width: 100%;
height: 300px;

View File

@@ -40,7 +40,6 @@ export class UploadContainer extends Component {
componentDidUpdate() {
if (this.state.submitting && (!this.state.file || this.state.url !== "")) {
// upload using axios
post(apis.submitMessage, { content: this.state.msg, image: this.state.url })
.then(({ data, status, networkStatus }) => {
if (networkStatus !== 200) return;