mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
fix: MySQL 性能参数区分版本显示 (#2474)
This commit is contained in:
parent
7171c13e31
commit
b8d2d4e7af
@ -304,7 +304,7 @@ const loadVariables = async () => {
|
|||||||
variablesRef.value!.acceptParams({
|
variablesRef.value!.acceptParams({
|
||||||
type: props.type,
|
type: props.type,
|
||||||
database: props.database,
|
database: props.database,
|
||||||
mysqlVersion: mysqlVersion.value,
|
version: mysqlVersion.value,
|
||||||
variables: res.data,
|
variables: res.data,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
<span class="input-help">{{ $t('database.readRndBufferSizeHelper') }}</span>
|
<span class="input-help">{{ $t('database.readRndBufferSizeHelper') }}</span>
|
||||||
</el-form-item>
|
</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">
|
<el-input clearable v-model.number="mysqlVariables.query_cache_size">
|
||||||
<template #append>MB</template>
|
<template #append>MB</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
@ -303,7 +303,7 @@ const onSaveVariables = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const showCacheSize = () => {
|
const showCacheSize = () => {
|
||||||
return currentDB.version.startsWith('5.7');
|
return currentDB.version?.startsWith('5.7');
|
||||||
};
|
};
|
||||||
defineExpose({
|
defineExpose({
|
||||||
acceptParams,
|
acceptParams,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user