diff --git a/src/AppConfig.js b/src/AppConfig.js index 3216f00f..faef3bd2 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -25,7 +25,7 @@ if (isDev) { } 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 || '' + window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin' } window._debugType = debugType; export function initAxiosInterceptors(props) { diff --git a/src/forge/Order/order.css b/src/forge/Order/order.css index c35a1827..40adc855 100644 --- a/src/forge/Order/order.css +++ b/src/forge/Order/order.css @@ -573,6 +573,9 @@ a.issue-type-button.active:hover { .attachment-list-a { color: rgba(0, 0, 0, 0.65) !important; } +.attachment-list-a>span{ + word-break: break-all; +} .btp1 { border-top: 1px solid #f4f4f4; } diff --git a/src/forge/Upload/Index.js b/src/forge/Upload/Index.js index f34888bb..20324211 100644 --- a/src/forge/Upload/Index.js +++ b/src/forge/Upload/Index.js @@ -80,8 +80,9 @@ class Index extends Component { } beforeUpload = (file) => { + console.log(file); if(file && !file.type){ - this.props.showNotification(`不能上传文件夹!`); + this.props.showNotification(`暂不支持此格式文件的上传!`); return; } const { size } = this.props;