forked from Gitlink/forgeplus-react
upload
This commit is contained in:
parent
79c943d31b
commit
d1232be557
|
@ -261,10 +261,8 @@ class App extends Component {
|
|||
}
|
||||
}>
|
||||
</Route>
|
||||
|
||||
{/*403*/}
|
||||
<Route path="/403" component={Shixunauthority} />
|
||||
|
||||
<Route path="/500" component={http500} />
|
||||
<Route path={"/organize"}
|
||||
render={
|
||||
|
|
|
@ -58,8 +58,8 @@ export function initAxiosInterceptors(props) {
|
|||
initOnlineOfflineListener()
|
||||
// TODO 避免重复的请求 https://github.com/axios/axios#cancellation
|
||||
var
|
||||
proxy = "http://localhost:3000"
|
||||
// proxy = "https://testforgeplus.trustie.net"
|
||||
// proxy = "http://localhost:3000"
|
||||
proxy = "https://testforgeplus.trustie.net"
|
||||
|
||||
const requestMap = {};
|
||||
window.setfalseInRequestMap = function (keyName) {
|
||||
|
|
|
@ -16,7 +16,7 @@ export default ({ id , permission , calbackFunc , confirm }) => {
|
|||
// 置顶、取消置顶
|
||||
function changeSticky(s){
|
||||
let sticky = s ? 0 : 1;//1为置顶,0为取消置顶
|
||||
const url = `/memos/${id}/set-top-or-down.json`;
|
||||
const url = `/memos/${id}/set_top_or_down.json`;
|
||||
axios.get(url,{
|
||||
params:{
|
||||
sticky
|
||||
|
|
|
@ -147,8 +147,18 @@
|
|||
border:none!important;
|
||||
text-align: left!important;
|
||||
background-color: #fff!important;
|
||||
height: 20px!important;
|
||||
line-height: 20px!important;
|
||||
.ant-upload-drag-container{
|
||||
i{
|
||||
font-size: 50px;
|
||||
margin-bottom: 15px;
|
||||
color: #999;
|
||||
}
|
||||
display: flex!important;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
border:1px dashed #eee;
|
||||
padding:15px 0px;
|
||||
}
|
||||
.ant-upload{
|
||||
padding:0px!important;
|
||||
}
|
||||
|
@ -172,9 +182,12 @@
|
|||
.headerInfoLeft{
|
||||
display:flex;
|
||||
flex:1;
|
||||
align-items:flex-start;
|
||||
align-items:center;
|
||||
width:0;
|
||||
}
|
||||
.tag{
|
||||
margin-top:0px!important;
|
||||
}
|
||||
.originalTag{
|
||||
position: absolute;
|
||||
right: 50px;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import React, { useState, useEffect } from "react";
|
||||
import React, { useState } from "react";
|
||||
import { getUrl } from "educoder";
|
||||
import { Button, message } from "antd";
|
||||
import MDEditor from "../../modules/tpm/challengesnew/tpm-md-editor";
|
||||
|
|
|
@ -1,37 +1,26 @@
|
|||
import React, { Component } from 'react';
|
||||
|
||||
import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
|
||||
|
||||
import Loading from '../../Loading';
|
||||
|
||||
import Loadable from 'react-loadable';
|
||||
|
||||
import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
|
||||
|
||||
import { SnackbarHOC,getImageUrl } from 'educoder';
|
||||
import { SnackbarHOC, getImageUrl } from 'educoder';
|
||||
|
||||
class Shixunnopage extends Component {
|
||||
render() {
|
||||
return (
|
||||
<div className="newMain clearfix">
|
||||
<div className=" edu-txt-center mt60 mb60">
|
||||
{/*mt100 mb100*/}
|
||||
<img src={getImageUrl("images/warn/pic_500.jpg")} />
|
||||
<p className="font-18 mt40">
|
||||
您可以稍后尝试 <a href="/"
|
||||
className="color-blue">返回首页</a>
|
||||
<div className=" edu-txt-center mt60 mb60">
|
||||
{/*mt100 mb100*/}
|
||||
<img src={getImageUrl("images/warn/pic_500.jpg")} alt="" />
|
||||
<p className="font-18 mt40">
|
||||
您可以稍后尝试 <a href="/"
|
||||
className="color-blue">返回首页</a>
|
||||
,或者
|
||||
<a target="_blank"
|
||||
href="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd"
|
||||
className="color-blue">QQ反馈>></a>
|
||||
</p>
|
||||
</div>
|
||||
{/*<div style="clear:both;"></div>*/}
|
||||
{/*<div id="ajax-indicator" style="display:none;"><span>载入中...</span></div>*/}
|
||||
{/*<div id="ajax-modal" style="display:none;"></div>*/}
|
||||
href="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd"
|
||||
className="color-blue">QQ反馈>></a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default SnackbarHOC() (TPMIndexHOC ( Shixunnopage ));
|
||||
export default SnackbarHOC()(TPMIndexHOC(Shixunnopage));
|
||||
|
|
Loading…
Reference in New Issue