feat(assistant): Added a new assistant debugging page

This commit is contained in:
dataeaseShu
2025-08-08 10:04:53 +08:00
parent 553faa5fab
commit fc13d41755
4 changed files with 46 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite-sqlbot.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SQLBot</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
+17
View File
@@ -0,0 +1,17 @@
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './style.less'
import App from './App.vue'
import router from './router'
import { i18n } from './i18n'
import VueDOMPurifyHTML from 'vue-dompurify-html'
// import 'element-plus/dist/index.css'
const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
app.use(router)
app.use(i18n)
app.use(VueDOMPurifyHTML)
app.mount('#app')
+7
View File
@@ -11,6 +11,7 @@ import DashboardPreview from '@//views/dashboard/preview/SQPreviewSingle.vue'
import Dashboard from '@/views/dashboard/index.vue'
import Model from '@/views/system/model/Model.vue'
import Embedded from '@/views/system/embedded/index.vue'
import assistantTest from '@/views/system/embedded/Test.vue'
import assistant from '@/views/embedded/index.vue'
import Member from '@/views/system/member/index.vue'
import Appearance from '@/views/system/appearance/index.vue'
@@ -180,6 +181,12 @@ export const routes = [
name: 'assistant',
component: assistant,
},
{
path: '/assistantTest',
name: 'assistantTest',
component: assistantTest,
},
]
const router = createRouter({
history: createWebHashHistory(),
@@ -0,0 +1,9 @@
<template>
<iframe
width="400"
height="700"
style="position: fixed; left: 16px; bottom: 16px"
src="/embedded.html/#/assistant?id=1"
frameborder="0"
></iframe>
</template>