This commit is contained in:
caishi 2022-03-30 16:13:42 +08:00
parent 4d613fd07f
commit 335e484167
3 changed files with 6 additions and 2 deletions

View File

@ -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) {

View File

@ -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;
}

View File

@ -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;