Browse Source

[Fix][UI] Fix the udf function echoed error in the sql task. (#9616)

Amy0104 3 years ago
parent
commit
a1df0ee99c

+ 1 - 1
dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-udfs.ts

@@ -30,7 +30,7 @@ export function useUdfs(model: { [field: string]: any }): IJsonItem {
     loading.value = true
     const res = await queryUdfFuncList({ type: model.type })
     options.value = res.map((udf: { id: number; funcName: string }) => ({
-      value: udf.id,
+      value: String(udf.id),
       label: udf.funcName
     }))
     loading.value = false