mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 00:53:54 +08:00
Merge pull request #2857 from xinnan-tech/build-generator
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" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Xiaozhi AI Customization</title>
|
<title>Xiaozhi AI Customization</title>
|
||||||
<script type="module" crossorigin src="/generator/assets/index-CYcyz9xb.js"></script>
|
<script type="module" crossorigin src="./assets/index-FKVSBRAB.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/generator/assets/index-NXxBVrod.css">
|
<link rel="stylesheet" crossorigin href="./assets/index-NXxBVrod.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
@@ -338,8 +338,11 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleGenertor() {
|
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);
|
sessionStorage.setItem('devicePath', window.location.href);
|
||||||
window.location.href = `${window.location.origin}/generator/index.html`;
|
window.location.href = url;
|
||||||
},
|
},
|
||||||
goFirst() {
|
goFirst() {
|
||||||
this.currentPage = 1;
|
this.currentPage = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user