mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
fixed:静态资源接口路径错误
This commit is contained in:
parent
a640cbdd81
commit
f4f6eb763e
7 changed files with 47 additions and 49 deletions
|
|
@ -1,21 +1,19 @@
|
|||
# 添加项目根目录到Python路径
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
from aiohttp import web
|
||||
from aiohttp_cors import setup as cors_setup, ResourceOptions
|
||||
from core.utils.util import get_local_ip
|
||||
|
||||
# 添加项目根目录到Python路径
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
root_dir = os.path.dirname(current_dir)
|
||||
sys.path.append(root_dir)
|
||||
|
||||
import logging
|
||||
from aiohttp import web
|
||||
from aiohttp_cors import setup as cors_setup, ResourceOptions
|
||||
from core.utils.util import get_local_ip
|
||||
from manager.api.login import LoginHandler
|
||||
from manager.api.register import RegisterHandler
|
||||
from manager.user_manager import UserManager
|
||||
from manager.api.user_manager import UserManager
|
||||
from manager.api.config import ConfigHandler
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class WebUI:
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
38
manager/static/webui/assets/index-CvO82KVk.js
Normal file
38
manager/static/webui/assets/index-CvO82KVk.js
Normal file
File diff suppressed because one or more lines are too long
1
manager/static/webui/assets/index-_IjUUKjO.css
Normal file
1
manager/static/webui/assets/index-_IjUUKjO.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -18,8 +18,8 @@
|
|||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="/assets/index-xClKUcGO.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-B6rJ-92F.css">
|
||||
<script type="module" crossorigin src="/assets/index-CvO82KVk.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-_IjUUKjO.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue