修复后端地址问题

This commit is contained in:
2026-04-13 20:40:40 +08:00
parent 833de8ba42
commit 72bf0c32b8
2 changed files with 6 additions and 6 deletions

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();