File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
frontend/src/views/database/mysql/setting Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -174,9 +174,7 @@ const jumpToConf = async () => {
174174 loadMysqlConf ();
175175};
176176
177- const changeTab = (tab : string ) => {
178- activeName .value = tab ;
179-
177+ watch (activeName , (tab ) => {
180178 switch (tab ) {
181179 case ' slowLog' :
182180 nextTick (() => {
@@ -185,13 +183,19 @@ const changeTab = (tab: string) => {
185183 break ;
186184 case ' status' :
187185 nextTick (() => {
188- statusRef .value ! .acceptParams ({ type: props .type , database: props .database });
186+ statusRef .value ! .acceptParams ({type: props .type , database: props .database });
189187 });
190188 break ;
191189 case ' tuning' :
192- loadVariables ();
190+ nextTick (() => {
191+ loadVariables ();
192+ });
193193 break ;
194194 }
195+ }, {immediate: true });
196+
197+ const changeTab = (tab : string ) => {
198+ activeName .value = tab ;
195199};
196200
197201const onSubmitChangePort = async () => {
You can’t perform that action at this time.
0 commit comments