competitions
杨树明 5 years ago
parent 770563bc58
commit f47c067ffe

@ -21,16 +21,16 @@ let hashTimeout
// TODO 开发期多个身份切换 // TODO 开发期多个身份切换
let debugType ="" let debugType =""
if (isDev) { // if (isDev) {
const _search = window.location.search; // const _search = window.location.search;
let parsed = {}; // let parsed = {};
if (_search) { // if (_search) {
parsed = queryString.parse(_search); // parsed = queryString.parse(_search);
} // }
debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' : // debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' :
window.location.search.indexOf('debug=s') != -1 ? 'student' : // window.location.search.indexOf('debug=s') != -1 ? 'student' :
window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' // window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
} // }
window._debugType = debugType; window._debugType = debugType;
export function initAxiosInterceptors(props) { export function initAxiosInterceptors(props) {
initOnlineOfflineListener() initOnlineOfflineListener()

@ -242,18 +242,17 @@ class Selectsetting extends Component{
} }
delectcousedelectfils=(id)=>{ delectcousedelectfils=(id)=>{
const url = `/attachments/id.json`; const url = `/attachments/${id}.json`;
console.log(id) axios.delete(url)
axios.delete(url, { data: {
id:id
}})
.then((response) => { .then((response) => {
if (response.data.status == 0) { if (response.data.status == 0) {
// {"status":1,"message":"删除成功"} // {"status":1,"message":"删除成功"}
this.props.showNotification(response.data.message); this.props.showNotification(response.data.message);
this.getalldata this.getalldata
this.hidecouseShixunModal this.hidecouseShixunModal
}else{
this.props.showNotification(response.data.message);
} }
}) })
.catch(function (error) { .catch(function (error) {

@ -111,7 +111,7 @@
} }
.logincloseIcon{ .logincloseIcon{
position: absolute; position: absolute;
top: -100px; top: -100px !important;
right: -27px; right: -27px;
z-index: 100000; z-index: 100000;
} }

Loading…
Cancel
Save