fix: set CC_BASE before api.js loads to fix login 404
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ca40d251d6
commit
db4a431910
2 changed files with 2 additions and 3 deletions
|
|
@ -15,7 +15,8 @@
|
|||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
<!-- JS load order matters -->
|
||||
<!-- Base path must be defined before any other scripts -->
|
||||
<script>window.CC_BASE = '/cc-dashboard';</script>
|
||||
<script src="/cc-dashboard/static/js/api.js"></script>
|
||||
<script src="/cc-dashboard/static/js/sse.js"></script>
|
||||
<script src="/cc-dashboard/static/js/charts.js"></script>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
/**
|
||||
* SPA Router & app init.
|
||||
*/
|
||||
window.CC_BASE = '/cc-dashboard';
|
||||
|
||||
const App = (() => {
|
||||
let _currentUser = null;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue