From bfff446cf4d7f19ea2a470a1d0c3d8b579fb5dea Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Mon, 15 Jan 2024 14:56:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=95=B0=E6=8D=AE=E5=87=86=E5=A4=87-?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90):=20=E6=B7=BB=E5=8A=A0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=95=B0=E6=8D=AE=E6=BA=90=E7=9B=AE=E5=BD=95=E7=9A=84?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/api/datasource.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/core-frontend/src/api/datasource.ts b/core/core-frontend/src/api/datasource.ts index 1b32dced92..bc51454740 100644 --- a/core/core-frontend/src/api/datasource.ts +++ b/core/core-frontend/src/api/datasource.ts @@ -111,6 +111,14 @@ export const getDatasetTree = async (data = {}): Promise => { }) } +export const getDsTree = async (data = {}): Promise => { + return request + .post({ url: '/datasource/tree', data: { ...data, ...{ busiFlag: 'datasource' } } }) + .then(res => { + return res?.data + }) +} + export const deleteById = (id: number) => request.get({ url: '/datasource/delete/' + id }) export const getById = (id: number) => request.get({ url: '/datasource/get/' + id })