浏览代码

feat: add `any` data type in workflow table

Ahmad Kholid 3 年之前
父节点
当前提交
ad8edc4b74
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 2 0
      src/background/workflowEngine/helper.js
  2. 1 0
      src/components/newtab/workflow/WorkflowDataTable.vue

+ 2 - 0
src/background/workflowEngine/helper.js

@@ -40,6 +40,8 @@ export function waitTabLoaded(tabId) {
 }
 
 export function convertData(data, type) {
+  if (type === 'any') return data;
+
   let result = data;
 
   switch (type) {

+ 1 - 0
src/components/newtab/workflow/WorkflowDataTable.vue

@@ -59,6 +59,7 @@ const emit = defineEmits(['update', 'close', 'change']);
 const { t } = useI18n();
 
 const dataTypes = [
+  { id: 'any', name: 'Any' },
   { id: 'string', name: 'Text' },
   { id: 'integer', name: 'Number' },
   { id: 'boolean', name: 'Boolean' },