From 91c92272130a8f06f9d15c86c4c80a2f889d2911 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Sat, 6 Jul 2019 16:06:31 +0800 Subject: [PATCH] _isDev --- public/react/src/common/components/Cropper.js | 4 ++-- public/react/src/modules/user/account/ChangeHeaderPicModal.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/react/src/common/components/Cropper.js b/public/react/src/common/components/Cropper.js index 7e8a5792e..632950434 100644 --- a/public/react/src/common/components/Cropper.js +++ b/public/react/src/common/components/Cropper.js @@ -81,8 +81,8 @@ class Cropper extends Component { $.ajaxSetup({ cache: true }); - const isDev = isDev() - let _path = isDev ? 'public' : 'build' + const _isDev = isDev() + let _path = _isDev ? 'public' : 'build' $('head').append($('') .attr('href', `${_url_origin}/react/${_path}/js/cropper/cropper.min.css`)); diff --git a/public/react/src/modules/user/account/ChangeHeaderPicModal.js b/public/react/src/modules/user/account/ChangeHeaderPicModal.js index 89f21838e..08b4e9d18 100644 --- a/public/react/src/modules/user/account/ChangeHeaderPicModal.js +++ b/public/react/src/modules/user/account/ChangeHeaderPicModal.js @@ -59,7 +59,7 @@ class ChangeHeaderPicModal extends Component{ if (visible) { setTimeout(() => { this.init() - }, 300) + }, 500) } }