fix: Fixed issue with backup mysql-cluster failed (#10433)

This commit is contained in:
CityFun 2025-09-22 16:02:03 +08:00 committed by GitHub
parent b73b851245
commit 40e264e0d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@
<el-alert :closable="false" type="warning">
<template #default>
<ul>
<li v-if="type === 'mysql' || type === 'mariadb'">
<li v-if="type === 'mysql' || type === 'mariadb' || type === 'mysql-cluster'">
{{ $t('database.formatHelper', [remark]) }}
</li>
<li v-if="isDb()">{{ $t('database.supportUpType') }}</li>
@ -299,7 +299,13 @@ const onRecover = async (row: File.File) => {
};
const isDb = () => {
return type.value === 'mysql' || type.value === 'mariadb' || type.value === 'postgresql';
return (
type.value === 'mysql' ||
type.value === 'mariadb' ||
type.value === 'postgresql' ||
type.value === 'mysql-cluster' ||
type.value === 'postgresql-cluster'
);
};
const uploaderFiles = ref<UploadFiles>([]);
const uploadRef = ref<UploadInstance>();