mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
fix: 解决应用无法升级的问题 (#1208)
This commit is contained in:
parent
df77ac4318
commit
cbdf1ad7b7
@ -152,8 +152,9 @@ const paramModel = ref<any>({
|
|||||||
});
|
});
|
||||||
const rules = reactive({
|
const rules = reactive({
|
||||||
params: {},
|
params: {},
|
||||||
cpuQuota: [Rules.requiredInput, checkNumberRange(0, 99999)],
|
cpuQuota: [Rules.requiredInput, checkNumberRange(0, 999)],
|
||||||
memoryLimit: [Rules.requiredInput, checkNumberRange(0, 9999999999)],
|
memoryLimit: [Rules.requiredInput, checkNumberRange(0, 9999999999)],
|
||||||
|
containerName: [Rules.containerName],
|
||||||
});
|
});
|
||||||
const submitModel = ref<any>({});
|
const submitModel = ref<any>({});
|
||||||
|
|
||||||
@ -162,6 +163,7 @@ const acceptParams = async (props: ParamProps) => {
|
|||||||
params.value = [];
|
params.value = [];
|
||||||
paramData.value.id = props.id;
|
paramData.value.id = props.id;
|
||||||
paramData.value.app = props.app;
|
paramData.value.app = props.app;
|
||||||
|
paramModel.value.params = {};
|
||||||
edit.value = false;
|
edit.value = false;
|
||||||
await get();
|
await get();
|
||||||
open.value = true;
|
open.value = true;
|
||||||
|
@ -157,7 +157,7 @@
|
|||||||
plain
|
plain
|
||||||
round
|
round
|
||||||
size="small"
|
size="small"
|
||||||
:disabled="installed.status === 'Running'"
|
:disabled="installed.status !== 'Running'"
|
||||||
@click="openOperate(installed, 'upgrade')"
|
@click="openOperate(installed, 'upgrade')"
|
||||||
v-if="mode === 'upgrade'"
|
v-if="mode === 'upgrade'"
|
||||||
>
|
>
|
||||||
|
@ -360,6 +360,7 @@ const rules = ref<any>({
|
|||||||
params: {},
|
params: {},
|
||||||
cpuQuota: [Rules.requiredInput, checkNumberRange(0, 99999)],
|
cpuQuota: [Rules.requiredInput, checkNumberRange(0, 99999)],
|
||||||
memoryLimit: [Rules.requiredInput, checkNumberRange(0, 9999999999)],
|
memoryLimit: [Rules.requiredInput, checkNumberRange(0, 9999999999)],
|
||||||
|
containerName: [Rules.containerName],
|
||||||
},
|
},
|
||||||
proxyType: [Rules.requiredSelect],
|
proxyType: [Rules.requiredSelect],
|
||||||
port: [Rules.port],
|
port: [Rules.port],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user