mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-24 06:27:37 +08:00
fix: Fixed issue with create supervisorConfig failed in php runtime (#9919)
This commit is contained in:
parent
0adfe65476
commit
dfbc549ea9
1 changed files with 5 additions and 0 deletions
|
|
@ -32,6 +32,9 @@
|
||||||
<el-form-item :label="$t('tool.supervisor.autoRestart')" prop="autoRestart">
|
<el-form-item :label="$t('tool.supervisor.autoRestart')" prop="autoRestart">
|
||||||
<el-switch v-model="process.autoRestart" active-value="true" inactive-value="false"></el-switch>
|
<el-switch v-model="process.autoRestart" active-value="true" inactive-value="false"></el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('tool.supervisor.autoStart')" prop="autoStart">
|
||||||
|
<el-switch v-model="process.autoStart" active-value="true" inactive-value="false"></el-switch>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
|
|
@ -73,6 +76,7 @@ const initData = (runtimeID: number) => ({
|
||||||
numprocs: '1',
|
numprocs: '1',
|
||||||
id: runtimeID,
|
id: runtimeID,
|
||||||
autoRestart: 'true',
|
autoRestart: 'true',
|
||||||
|
autoStart: 'true',
|
||||||
});
|
});
|
||||||
const process = ref(initData(0));
|
const process = ref(initData(0));
|
||||||
const em = defineEmits(['close']);
|
const em = defineEmits(['close']);
|
||||||
|
|
@ -100,6 +104,7 @@ const acceptParams = (operate: string, config: HostTool.SupersivorProcess, id: n
|
||||||
numprocs: config.numprocs,
|
numprocs: config.numprocs,
|
||||||
id: id,
|
id: id,
|
||||||
autoRestart: config.autoRestart,
|
autoRestart: config.autoRestart,
|
||||||
|
autoStart: config.autoStart,
|
||||||
};
|
};
|
||||||
process.value.numprocsNum = Number(config.numprocs);
|
process.value.numprocsNum = Number(config.numprocs);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue