feat: Embedded page routing

This commit is contained in:
fit2cloud-chenyw
2025-08-18 11:51:01 +08:00
parent 9f7a10aa1c
commit 891b908d1c
2 changed files with 26 additions and 1 deletions
+6 -1
View File
@@ -13,6 +13,7 @@ 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 EmbeddedPage from '@/views/embedded/page.vue'
import Member from '@/views/system/member/index.vue'
import Appearance from '@/views/system/appearance/index.vue'
import Permission from '@/views/system/permission/index.vue'
@@ -182,7 +183,11 @@ export const routes = [
name: 'assistant',
component: assistant,
},
{
path: '/embeddedPage',
name: 'embeddedPage',
component: EmbeddedPage,
},
{
path: '/assistantTest',
name: 'assistantTest',
+20
View File
@@ -0,0 +1,20 @@
<template>
<div class="sqlbot--embedded-page">
<chat-component ref="chatRef" />
</div>
</template>
<script setup lang="ts">
import ChatComponent from '@/views/chat/index.vue'
import { ref } from 'vue'
const chatRef = ref()
</script>
<style lang="less" scoped>
.sqlbot--embedded-page {
width: 100%;
height: 100%;
position: relative;
background: #f7f8fa;
}
</style>