Skip to content

Commit 6f16058

Browse files
committed
调试
1 parent 5203f34 commit 6f16058

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/layouts/BaseLayout.astro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ const { description, keywords, title, canonical, ogType } = Astro.props;
131131
import { ToastMessageEvent } from "../utils/types";
132132

133133
const welcome = () => {
134-
console.log("欢迎");
135134
// 获取完整的来源 URL
136135
let referrer = document.referrer;
136+
console.log("欢迎,referrer:", referrer);
137137
if (!referrer) {
138138
return;
139139
}
@@ -148,8 +148,6 @@ const { description, keywords, title, canonical, ogType } = Astro.props;
148148
);
149149
};
150150
window.onload = welcome;
151-
const btn = document.getElementById("test") as HTMLButtonElement;
152-
btn.addEventListener("click", welcome);
153151
</script>
154152

155153
<style>

0 commit comments

Comments
 (0)