Browse Source

fix: 解决应用无法升级的问题 (#1208)

pull/1213/head
zhengkunwang223 2 years ago committed by GitHub
parent
commit
cbdf1ad7b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      frontend/src/views/app-store/installed/detail/index.vue
  2. 2
      frontend/src/views/app-store/installed/index.vue
  3. 1
      frontend/src/views/website/website/create/index.vue

4
frontend/src/views/app-store/installed/detail/index.vue

@ -152,8 +152,9 @@ const paramModel = ref<any>({
});
const rules = reactive({
params: {},
cpuQuota: [Rules.requiredInput, checkNumberRange(0, 99999)],
cpuQuota: [Rules.requiredInput, checkNumberRange(0, 999)],
memoryLimit: [Rules.requiredInput, checkNumberRange(0, 9999999999)],
containerName: [Rules.containerName],
});
const submitModel = ref<any>({});
@ -162,6 +163,7 @@ const acceptParams = async (props: ParamProps) => {
params.value = [];
paramData.value.id = props.id;
paramData.value.app = props.app;
paramModel.value.params = {};
edit.value = false;
await get();
open.value = true;

2
frontend/src/views/app-store/installed/index.vue

@ -157,7 +157,7 @@
plain
round
size="small"
:disabled="installed.status === 'Running'"
:disabled="installed.status !== 'Running'"
@click="openOperate(installed, 'upgrade')"
v-if="mode === 'upgrade'"
>

1
frontend/src/views/website/website/create/index.vue

@ -360,6 +360,7 @@ const rules = ref<any>({
params: {},
cpuQuota: [Rules.requiredInput, checkNumberRange(0, 99999)],
memoryLimit: [Rules.requiredInput, checkNumberRange(0, 9999999999)],
containerName: [Rules.containerName],
},
proxyType: [Rules.requiredSelect],
port: [Rules.port],

Loading…
Cancel
Save