mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
commit
3660af9619
7 changed files with 89 additions and 88 deletions
81
main/manager-web/public/generator/assets/index-B8r0c7xg.js
Normal file
81
main/manager-web/public/generator/assets/index-B8r0c7xg.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
main/manager-web/public/generator/favicon.ico
Normal file
BIN
main/manager-web/public/generator/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
|
|
@ -4,9 +4,10 @@
|
|||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="icon" href="./favicon.ico">
|
||||
<title>Xiaozhi AI Customization</title>
|
||||
<script type="module" crossorigin src="./assets/index-FKVSBRAB.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-NXxBVrod.css">
|
||||
<script type="module" crossorigin src="./assets/index-B8r0c7xg.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-CrIJdTCK.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
<el-button size="mini" type="text" @click="handleUnbind(scope.row.device_id)">
|
||||
{{ $t('device.unbind') }}
|
||||
</el-button>
|
||||
<el-button v-if="isGenerate(scope.row)" size="mini" type="text" @click="handleGenertor">
|
||||
<el-button v-if="isGenerate(scope.row)" size="mini" type="text" @click="handleGenertor(scope.row)">
|
||||
{{ $t('device.deviceThemeGeneration') }}
|
||||
</el-button>
|
||||
</template>
|
||||
|
|
@ -337,10 +337,10 @@ export default {
|
|||
});
|
||||
});
|
||||
},
|
||||
handleGenertor() {
|
||||
handleGenertor(row) {
|
||||
const pathname = window.location.pathname;
|
||||
const basePath = pathname.split('/').slice(0, -1).join('/');
|
||||
const url = `${window.location.origin}${basePath}/generator/`;
|
||||
const url = `${window.location.origin}${basePath}/generator/?deviceId=${row.device_id}`;
|
||||
sessionStorage.setItem('devicePath', window.location.href);
|
||||
window.location.href = url;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ module.exports = defineConfig({
|
|||
port: 8001, // 指定端口为 8001
|
||||
proxy: {
|
||||
'/xiaozhi': {
|
||||
target: 'http://127.0.0.1:8002',
|
||||
target: 'http://test.aiot.xin-nan.com',
|
||||
changeOrigin: true
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue