diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 9cf68503d..3c150c90c 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -21,16 +21,16 @@ let hashTimeout // TODO 开发期多个身份切换 let debugType ="" -if (isDev) { - const _search = window.location.search; - let parsed = {}; - if (_search) { - parsed = queryString.parse(_search); - } - debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' : - window.location.search.indexOf('debug=s') != -1 ? 'student' : - window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' -} +// if (isDev) { +// const _search = window.location.search; +// let parsed = {}; +// if (_search) { +// parsed = queryString.parse(_search); +// } +// debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' : +// window.location.search.indexOf('debug=s') != -1 ? 'student' : +// window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' +// } window._debugType = debugType; export function initAxiosInterceptors(props) { initOnlineOfflineListener() diff --git a/public/react/src/modules/courses/coursesPublic/SelectSetting.js b/public/react/src/modules/courses/coursesPublic/SelectSetting.js index 712e675ee..57106600d 100644 --- a/public/react/src/modules/courses/coursesPublic/SelectSetting.js +++ b/public/react/src/modules/courses/coursesPublic/SelectSetting.js @@ -242,18 +242,17 @@ class Selectsetting extends Component{ } delectcousedelectfils=(id)=>{ - const url = `/attachments/id.json`; + const url = `/attachments/${id}.json`; - console.log(id) - axios.delete(url, { data: { - id:id - }}) + axios.delete(url) .then((response) => { if (response.data.status == 0) { // {"status":1,"message":"删除成功"} this.props.showNotification(response.data.message); this.getalldata this.hidecouseShixunModal + }else{ + this.props.showNotification(response.data.message); } }) .catch(function (error) { diff --git a/public/react/src/modules/login/LoginDialog.css b/public/react/src/modules/login/LoginDialog.css index c791e04b3..9a9373770 100644 --- a/public/react/src/modules/login/LoginDialog.css +++ b/public/react/src/modules/login/LoginDialog.css @@ -111,7 +111,7 @@ } .logincloseIcon{ position: absolute; - top: -100px; + top: -100px !important; right: -27px; z-index: 100000; }