From b4ec7be17a3777037fb24284f41890c3a2e7768f Mon Sep 17 00:00:00 2001 From: xion Date: Tue, 12 Aug 2025 21:37:10 +0800 Subject: [PATCH] temp --- examples/abc/src/apps/get.ts | 5 +++++ examples/abc/src/pages/hello.astro | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 examples/abc/src/apps/get.ts diff --git a/examples/abc/src/apps/get.ts b/examples/abc/src/apps/get.ts new file mode 100644 index 0000000..88075a7 --- /dev/null +++ b/examples/abc/src/apps/get.ts @@ -0,0 +1,5 @@ +export const getTest = () => { + return { + "a": 1 + } +} \ No newline at end of file diff --git a/examples/abc/src/pages/hello.astro b/examples/abc/src/pages/hello.astro index 92d561c..9d566aa 100644 --- a/examples/abc/src/pages/hello.astro +++ b/examples/abc/src/pages/hello.astro @@ -1,7 +1,9 @@ --- - +import {getTest} from '../apps/get.ts'; +const data = await getTest(); ---
hello world +{JSON.stringify(data)}
\ No newline at end of file