초기 커밋 - EV AS 관리 시스템
This commit is contained in:
18
frontend/static/index.html
Normal file
18
frontend/static/index.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>EV 충전기 AS 관리</title>
|
||||
<script>
|
||||
const role = localStorage.getItem('ev_role');
|
||||
const token = localStorage.getItem('ev_token');
|
||||
if (!token) location.href = '/pages/login.html';
|
||||
else if (role === 'admin') location.href = '/pages/admin/dashboard.html';
|
||||
else if (role === 'mechanic') location.href = '/pages/mechanic/dashboard.html';
|
||||
else if (role === 'manufacturer') location.href = '/pages/manufacturer/dashboard.html';
|
||||
else location.href = '/pages/login.html';
|
||||
</script>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user