deploy機能実装

This commit is contained in:
2023-10-16 17:13:14 +09:00
parent b54c0f8022
commit 178cf33949
5 changed files with 55 additions and 7 deletions

View File

@@ -122,8 +122,32 @@ const closeDg=(val :any)=>{
store.currentFlow?.addNode(action, prevNodeIfo.value.prevNode,prevNodeIfo.value.inputPoint);
}
}
const onDeploy=()=>{
/**
* デプロイ
*/
const onDeploy= async ()=>{
if(store.appInfo===undefined || store.flows?.length===0){
$q.notify({
type: 'negative',
caption:"エラー",
message: `設定されたフローがありません。`
});
return;
}
try{
await store.deploy();
$q.notify({
type: 'positive',
caption:"通知",
message: `デプロイを成功しました。`
});
}catch(error){
$q.notify({
type: 'negative',
caption:"エラー",
message: `デプロイが失敗しました。`
})
}
return;
}