Skip to content

Commit 4750361

Browse files
authored
番茄时钟-修复1.0-不能跳转-js
1 parent 5aac5c4 commit 4750361

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>专注番茄时钟 PWA</title>
7-
<link rel="stylesheet" href="/static/css/pomodoro-timer.css">
7+
<link rel="stylesheet" href="../static/css/pomodoro-timer.css">
88
<link rel="manifest" href="/manifest.json">
99
</head>
1010
<body data-theme="light">
@@ -73,7 +73,7 @@ <h2>📈 效率统计</h2>
7373
<p>专注模式激活中... 远离分心!</p>
7474
</div>
7575

76-
<script src="/static/js/pomodoro-timer.js"></script>
76+
<script src="../static/js/pomodoro-timer.js"></script>
7777
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
7878
<script>
7979
if ('serviceWorker' in navigator) {

static/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ document.addEventListener('DOMContentLoaded', () => {
6565
const cancelBtn = document.getElementById('cancel-btn');
6666

6767
// 假设您的番茄时钟页面文件名为 pomodoro-timer.html
68-
const targetUrl = 'pomodoro-timer.html';
68+
const targetUrl = '/pomodoro/pomodoro-timer.html';
6969

7070
// 确认按钮:跳转到番茄时钟页面
7171
confirmBtn.addEventListener('click', () => {

0 commit comments

Comments
 (0)