Merge pull request #414 from alibaba/hotfix_413

fixed #413
This commit is contained in:
zhichen 2018-12-07 23:06:12 +08:00 committed by GitHub
commit 7916583541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -95,7 +95,7 @@ request.middleWare((_config = {}) => {
* 配置 monaco * 配置 monaco
*/ */
window.require.config({ window.require.config({
paths: { vs: 'js/vs' }, paths: { vs: process.env.NODE_ENV === 'production' ? 'console-fe/public/js/vs' : 'js/vs' },
}); });
window.require.config({ window.require.config({
'vs/nls': { 'vs/nls': {

View File

@ -62,7 +62,9 @@ class ServiceList extends React.Component {
} }
openEditServiceDialog() { openEditServiceDialog() {
this.editServiceDialog.current.show(this.state.service); try {
this.editServiceDialog.current.getInstance().show(this.state.service);
} catch (error) {}
} }
queryServiceList() { queryServiceList() {

File diff suppressed because one or more lines are too long