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:
parent
7171c13e31
commit
b8d2d4e7af
@ -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,
|
||||
});
|
||||
};
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user