瀏覽代碼

fix: sidebar hidden when edit block

Ahmad Kholid 3 年之前
父節點
當前提交
dcd0d7c9aa
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/locales/zh/newtab.json
  2. 1 0
      src/newtab/pages/workflows/[id].vue

+ 1 - 1
src/locales/zh/newtab.json

@@ -180,7 +180,7 @@
       },
       },
       "restartWorkflow": {
       "restartWorkflow": {
         "for": "重新启动",
         "for": "重新启动",
-        "times": "次数"
+        "times": "次数",
         "description": "工作流可以重启的最大次数"
         "description": "工作流可以重启的最大次数"
       },
       },
       "onError": {
       "onError": {

+ 1 - 0
src/newtab/pages/workflows/[id].vue

@@ -759,6 +759,7 @@ function editBlock(data) {
   if (workflowData.active === 'shared') return;
   if (workflowData.active === 'shared') return;
 
 
   state.isEditBlock = true;
   state.isEditBlock = true;
+  state.showSidebar = true;
   state.blockData = defu(data, tasks[data.id] || {});
   state.blockData = defu(data, tasks[data.id] || {});
 }
 }
 function handleEditorDataChanged() {
 function handleEditorDataChanged() {