修复后端地址问题

This commit is contained in:
canglan committed 2026-04-13 20:40:40 +08:00
1 parent 833de8ba42
commit 72bf0c32b8
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -56,9 +56,9 @@ if (isset($_SESSION['user_id']) && isset($_SESSION['user_type'])) {
</div>
<script>
const API_BASE_URL = '<?php echo API_BASE_URL; ?>';
const JWT_STORAGE_KEY = '<?php echo JWT_STORAGE_KEY; ?>';
const USER_STORAGE_KEY = '<?php echo USER_STORAGE_KEY; ?>';
window.API_BASE_URL = '<?php echo API_BASE_URL; ?>';
window.JWT_STORAGE_KEY = '<?php echo JWT_STORAGE_KEY; ?>';
window.USER_STORAGE_KEY = '<?php echo USER_STORAGE_KEY; ?>';
document.getElementById('loginForm').addEventListener('submit', async (e) => {
e.preventDefault();