mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-16 02:17:02 +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-switch v-model="process.autoRestart" active-value="true" inactive-value="false"></el-switch>
|
||||
</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>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
|
@ -73,6 +76,7 @@ const initData = (runtimeID: number) => ({
|
|||
numprocs: '1',
|
||||
id: runtimeID,
|
||||
autoRestart: 'true',
|
||||
autoStart: 'true',
|
||||
});
|
||||
const process = ref(initData(0));
|
||||
const em = defineEmits(['close']);
|
||||
|
@ -100,6 +104,7 @@ const acceptParams = (operate: string, config: HostTool.SupersivorProcess, id: n
|
|||
numprocs: config.numprocs,
|
||||
id: id,
|
||||
autoRestart: config.autoRestart,
|
||||
autoStart: config.autoStart,
|
||||
};
|
||||
process.value.numprocsNum = Number(config.numprocs);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue