mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: Embedded page routing
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user