Skip to content

Commit dea7826

Browse files
committed
调试
1 parent ecedb85 commit dea7826

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/pages/index.astro

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ import BaseLayout from "../layouts/BaseLayout.astro";
1818
</div>
1919
</BaseLayout>
2020

21-
<script>
22-
window.onload = () => {
23-
// 获取完整的来源 URL
24-
let referrer = document.referrer;
25-
console.log("来源ts测试:", referrer);
26-
};
27-
</script>
2821
<script is:inline>
2922
window.onload = () => {
3023
// 获取完整的来源 URL
@@ -33,7 +26,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
3326
};
3427
</script>
3528

36-
<script>
29+
<!-- <script>
3730
import { ToastMessageEvent } from "../utils/types";
3831
3932
const welcome = () => {
@@ -54,7 +47,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
5447
);
5548
};
5649
window.onload = welcome;
57-
</script>
50+
</script> -->
5851

5952

6053

0 commit comments

Comments
 (0)