dev_forum
hjm 5 years ago
parent 3d23aca68c
commit 91c9227213

@ -81,8 +81,8 @@ class Cropper extends Component {
$.ajaxSetup({ $.ajaxSetup({
cache: true cache: true
}); });
const isDev = isDev() const _isDev = isDev()
let _path = isDev ? 'public' : 'build' let _path = _isDev ? 'public' : 'build'
$('head').append($('<link rel="stylesheet" type="text/css" />') $('head').append($('<link rel="stylesheet" type="text/css" />')
.attr('href', `${_url_origin}/react/${_path}/js/cropper/cropper.min.css`)); .attr('href', `${_url_origin}/react/${_path}/js/cropper/cropper.min.css`));

@ -59,7 +59,7 @@ class ChangeHeaderPicModal extends Component{
if (visible) { if (visible) {
setTimeout(() => { setTimeout(() => {
this.init() this.init()
}, 300) }, 500)
} }
} }

Loading…
Cancel
Save