diff --git a/public/react/public/js/js_min_all.js b/public/react/public/js/js_min_all.js index 390d774f..0aa8e44a 100644 --- a/public/react/public/js/js_min_all.js +++ b/public/react/public/js/js_min_all.js @@ -153,7 +153,10 @@ var EXPAND = 0; // 放大 var SHRINK = 1; // 缩小 var repositoryTabHeight = 40 - +function _resizeTpiPanel = () { + $("#game_left_contents").width('400px'); + $("#game_right_contents").width( $(".labelN").width() - 400 + 'px'); +} $(function(){ function update_rows_and_cols(rows) { var _iframe = document.getElementById("game_webssh"); diff --git a/public/react/src/context/TPIContextProvider.js b/public/react/src/context/TPIContextProvider.js index c3ebfc63..9beea340 100644 --- a/public/react/src/context/TPIContextProvider.js +++ b/public/react/src/context/TPIContextProvider.js @@ -307,7 +307,7 @@ pop_box_new(htmlvalue, 480, 182); // 将若干数据重新组织一下 _handleResponseData(resData) { - + let challenge = resData.challenge; challenge.isHtml = false; challenge.isWeb = false; @@ -387,7 +387,11 @@ pop_box_new(htmlvalue, 480, 182); currentGamePassed: false, loading: false, testSetsExpandedArray: testSetsExpandedArrayInitVal.slice(0), - }) + }, () => { + if (resData.shixun.vnc == true) { + window._resizeTpiPanel() + } + }) window.document.title = resData.shixun.name