mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-23 00:00:52 +00:00
fix: Fixed issue with create supervisorConfig failed in php runtime (#9919)
This commit is contained in:
committed by
wanghe-fit2cloud
parent
0adfe65476
commit
dfbc549ea9
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user