mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
feat: Fix 500 Error After Setting Authorized IP (#7334)
This commit is contained in:
parent
4d760d3019
commit
75d94f5b89
@ -35,7 +35,7 @@ func WhiteAllow() gin.HandlerFunc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
code := LoadErrCode()
|
code := LoadErrCode()
|
||||||
helper.ErrWithHtml(c, code, "ip_limit")
|
helper.ErrWithHtml(c, code, "err_ip_limit")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ const get = async () => {
|
|||||||
}
|
}
|
||||||
paramModel.value.memoryLimit = res.data.memoryLimit;
|
paramModel.value.memoryLimit = res.data.memoryLimit;
|
||||||
paramModel.value.cpuQuota = res.data.cpuQuota;
|
paramModel.value.cpuQuota = res.data.cpuQuota;
|
||||||
paramModel.value.memoryUnit = res.data.memoryUnit !== '' ? res.data.memoryUnit : 'MB';
|
paramModel.value.memoryUnit = res.data.memoryUnit !== '' ? res.data.memoryUnit : 'M';
|
||||||
paramModel.value.allowPort = res.data.allowPort;
|
paramModel.value.allowPort = res.data.allowPort;
|
||||||
paramModel.value.containerName = res.data.containerName;
|
paramModel.value.containerName = res.data.containerName;
|
||||||
paramModel.value.advanced = false;
|
paramModel.value.advanced = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user