feat: Move current status to first position in MySQL and Redis settings and set as default tab (#8910)

This commit is contained in:
2025-06-04 22:40:52 +08:00 committed by GitHub
parent 067a5f8415
commit 470d7881cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View file

@ -6,9 +6,6 @@
{{ props.database }} {{ props.database }}
</el-text> </el-text>
<el-divider direction="vertical" /> <el-divider direction="vertical" />
<el-button type="primary" :plain="activeName !== 'conf'" @click="jumpToConf">
{{ $t('database.confChange') }}
</el-button>
<el-button <el-button
type="primary" type="primary"
:disabled="mysqlStatus !== 'Running'" :disabled="mysqlStatus !== 'Running'"
@ -17,6 +14,9 @@
> >
{{ $t('database.currentStatus') }} {{ $t('database.currentStatus') }}
</el-button> </el-button>
<el-button type="primary" :plain="activeName !== 'conf'" @click="jumpToConf">
{{ $t('database.confChange') }}
</el-button>
<el-button <el-button
type="primary" type="primary"
:disabled="mysqlStatus !== 'Running'" :disabled="mysqlStatus !== 'Running'"
@ -136,7 +136,7 @@ import CodemirrorPro from '@/components/codemirror-pro/index.vue';
const loading = ref(false); const loading = ref(false);
const activeName = ref('conf'); const activeName = ref('status');
const baseInfo = reactive({ const baseInfo = reactive({
name: '', name: '',

View file

@ -6,9 +6,6 @@
{{ database }} {{ database }}
</el-text> </el-text>
<el-divider direction="vertical" /> <el-divider direction="vertical" />
<el-button type="primary" :plain="activeName !== 'conf'" @click="changeTab('conf')">
{{ $t('database.confChange') }}
</el-button>
<el-button <el-button
type="primary" type="primary"
:disabled="redisStatus !== 'Running'" :disabled="redisStatus !== 'Running'"
@ -17,6 +14,9 @@
> >
{{ $t('database.currentStatus') }} {{ $t('database.currentStatus') }}
</el-button> </el-button>
<el-button type="primary" :plain="activeName !== 'conf'" @click="changeTab('conf')">
{{ $t('database.confChange') }}
</el-button>
<el-button <el-button
type="primary" type="primary"
:disabled="redisStatus !== 'Running'" :disabled="redisStatus !== 'Running'"
@ -145,7 +145,7 @@ const rules = reactive({
maxmemory: [Rules.number, checkNumberRange(0, 999999)], maxmemory: [Rules.number, checkNumberRange(0, 999999)],
}); });
const activeName = ref('conf'); const activeName = ref('status');
const statusRef = ref(); const statusRef = ref();
const persistenceRef = ref(); const persistenceRef = ref();
@ -192,7 +192,7 @@ const acceptParams = (prop: DialogProps): void => {
redisStatus.value = prop.status; redisStatus.value = prop.status;
database.value = prop.database; database.value = prop.database;
settingShow.value = true; settingShow.value = true;
loadConfFile(); changeTab('status');
}; };
const portRef = ref(); const portRef = ref();