diff --git a/dashboard/src2/objects/jsite_server.js b/dashboard/src2/objects/jsite_server.js index 32298bc..1a07b58 100644 --- a/dashboard/src2/objects/jsite_server.js +++ b/dashboard/src2/objects/jsite_server.js @@ -317,33 +317,7 @@ export default { } ], actions({ documentResource: jsiteServer }) { - if (!jsiteServer) return []; - - return [ - { - label: '重启', - icon: 'refresh-cw', - onClick() { - jsiteServer.reboot.submit(); - }, - condition: () => jsiteServer.pg?.status === 'Running' - }, - { - label: '重命名', - icon: 'edit-3', - onClick() { - jsiteServer.rename.submit(); - } - }, - { - label: '删除', - icon: 'trash-2', - onClick() { - jsiteServer.dropServer.submit(); - }, - condition: () => jsiteServer.pg?.status !== 'Running' - } - ].filter(action => !action.condition || action.condition()); + return []; } } }; \ No newline at end of file