File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
frontend/src/views/database/mysql/setting/slow-log Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 3131 :placeholder =" $t('database.noData')"
3232 :indent-with-tab =" true"
3333 :tabSize =" 4"
34- style =" height : calc ( 100 vh - 428 px ); width : 100% "
34+ : style =" { height: getDynamicHeight(), width: ' 100%' } "
3535 :lineWrapping =" true"
3636 :matchBrackets =" true"
3737 theme =" cobalt"
4242 :disabled =" true"
4343 />
4444
45- <br />
4645 <ConfirmDialog @cancel =" onCancel" ref =" confirmDialogRef" @confirm =" onSave" ></ConfirmDialog >
4746 </div >
4847</template >
@@ -100,6 +99,8 @@ const acceptParams = async (params: DialogProps): Promise<void> => {
10099 loadMysqlSlowlogs (path );
101100 }
102101 }, 1000 * 5 );
102+ } else {
103+ detailShow .value = false ;
103104 }
104105};
105106const emit = defineEmits ([' loading' ]);
@@ -117,6 +118,10 @@ const handleSlowLogs = async () => {
117118 confirmDialogRef .value ! .acceptParams (params );
118119};
119120
121+ const getDynamicHeight = () => {
122+ return variables .slow_query_log === ' ON' ? ` calc(100vh - 437px) ` : ` calc(100vh - 383px) ` ;
123+ };
124+
120125const changeSlowLogs = () => {
121126 if (! (variables .long_query_time > 0 && variables .long_query_time <= 600 )) {
122127 MsgError (i18n .global .t (' database.thresholdRangeHelper' ));
You can’t perform that action at this time.
0 commit comments