Skip to content

Commit ecedb85

Browse files
committed
调试
1 parent 4a89849 commit ecedb85

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
PATH_MODULE: pinyin # 以拼音路径形式构建
2323
STEAM_ID: ${{ secrets.STEAM_ID }}
2424
STEAM_API_KEY: ${{ secrets.STEAM_API_KEY }}
25-
ENABLE_REQUEST: "true"
25+
ENABLE_REQUEST: "false"
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout your repository using git

src/pages/index.astro

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@ 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>
28+
<script is:inline>
29+
window.onload = () => {
30+
// 获取完整的来源 URL
31+
let referrer = document.referrer;
32+
console.log("来源js测试:", referrer);
33+
};
34+
</script>
35+
2136
<script>
2237
import { ToastMessageEvent } from "../utils/types";
2338

@@ -41,6 +56,8 @@ import BaseLayout from "../layouts/BaseLayout.astro";
4156
window.onload = welcome;
4257
</script>
4358

59+
60+
4461
<style>
4562
.content-wrapper {
4663
padding: 0 1.5rem;

0 commit comments

Comments
 (0)