mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
fix: 修复项目部署二级目录自定义语音盒子主题文件资源异常问题
This commit is contained in:
+25
-25
File diff suppressed because one or more lines are too long
@@ -5,8 +5,8 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Xiaozhi AI Customization</title>
|
||||
<script type="module" crossorigin src="/generator/assets/index-CYcyz9xb.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/generator/assets/index-NXxBVrod.css">
|
||||
<script type="module" crossorigin src="./assets/index-FKVSBRAB.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-NXxBVrod.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -338,8 +338,11 @@ export default {
|
||||
});
|
||||
},
|
||||
handleGenertor() {
|
||||
const pathname = window.location.pathname;
|
||||
const basePath = pathname.split('/').slice(0, -1).join('/');
|
||||
const url = `${window.location.origin}${basePath}/generator/`;
|
||||
sessionStorage.setItem('devicePath', window.location.href);
|
||||
window.location.href = `${window.location.origin}/generator/index.html`;
|
||||
window.location.href = url;
|
||||
},
|
||||
goFirst() {
|
||||
this.currentPage = 1;
|
||||
|
||||
Reference in New Issue
Block a user