From 7e1c7ea9f47d6fe3fd669672a4bce51ec2758bc3 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 30 五月 2024 14:32:15 +0800 Subject: [PATCH] Low Code Update --- src/api/tigerapi/system.ts | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/api/tigerapi/system.ts b/src/api/tigerapi/system.ts index 8efa655..0242820 100644 --- a/src/api/tigerapi/system.ts +++ b/src/api/tigerapi/system.ts @@ -646,6 +646,7 @@ ); }; +/* 閫氱敤鏌ヨ鍒嗛〉 */ export async function getListByPage<T>(params: T) { const Keys = Object.getOwnPropertyNames(params); let sqlcmd = ''; @@ -676,3 +677,12 @@ }; return model; } + +export async function fetchJson(url: string) { + try { + const response = await fetch(url); + return await response.json(); + } catch (error) { + console.error('Error fetching columns:', error); + } +} -- Gitblit v1.9.3