mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-10 19:50:53 +08:00
feat: 内存限制提示保留2位小数 (#1549)
This commit is contained in:
parent
759382bcfb
commit
b5a1ffe338
1 changed files with 2 additions and 2 deletions
|
|
@ -165,7 +165,7 @@ const initData = () => ({
|
|||
advanced: true,
|
||||
cpuQuota: 0,
|
||||
memoryLimit: 0,
|
||||
memoryUnit: 'MB',
|
||||
memoryUnit: 'M',
|
||||
containerName: '',
|
||||
allowPort: false,
|
||||
editCompose: false,
|
||||
|
|
@ -187,7 +187,7 @@ const changeUnit = () => {
|
|||
if (req.memoryUnit == 'M') {
|
||||
limits.value.memory = oldMemory.value;
|
||||
} else {
|
||||
limits.value.memory = oldMemory.value / 1024;
|
||||
limits.value.memory = Number((oldMemory.value / 1024).toFixed(2));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue