完成审核页面,对样式做大量微调(视觉的按钮好怪啊),但是目前发现了请求处理等待流程的bug
此提交包含在:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
新增問題並參考
封鎖使用者