mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-23 23:53:55 +08:00
fix: 修复项目部署二级目录自定义语音盒子主题文件资源异常问题
This commit is contained in:
@@ -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