1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

fix: MySQL 性能参数区分版本显示 (#2474)

This commit is contained in:
ssongliu 2023-10-09 11:48:19 +08:00 committed by GitHub
parent 7171c13e31
commit b8d2d4e7af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -304,7 +304,7 @@ const loadVariables = async () => {
variablesRef.value!.acceptParams({
type: props.type,
database: props.database,
mysqlVersion: mysqlVersion.value,
version: mysqlVersion.value,
variables: res.data,
});
};

View File

@ -76,7 +76,7 @@
</el-input>
<span class="input-help">{{ $t('database.readRndBufferSizeHelper') }}</span>
</el-form-item>
<el-form-item v-if="showCacheSize" label="query_cache_size" prop="query_cache_size">
<el-form-item v-if="showCacheSize()" label="query_cache_size" prop="query_cache_size">
<el-input clearable v-model.number="mysqlVariables.query_cache_size">
<template #append>MB</template>
</el-input>
@ -303,7 +303,7 @@ const onSaveVariables = async () => {
};
const showCacheSize = () => {
return currentDB.version.startsWith('5.7');
return currentDB.version?.startsWith('5.7');
};
defineExpose({
acceptParams,