feat: Bot发布增加外链聊天界面

This commit is contained in:
2026-03-03 16:36:27 +08:00
parent 29f82ed1f0
commit 80409259c3
12 changed files with 2152 additions and 30 deletions

View File

@@ -1,9 +1,9 @@
import type { RouteRecordRaw } from 'vue-router';
import type {RouteRecordRaw} from 'vue-router';
import { LOGIN_PATH } from '@easyflow/constants';
import { preferences } from '@easyflow/preferences';
import {LOGIN_PATH} from '@easyflow/constants';
import {preferences} from '@easyflow/preferences';
import { $t } from '#/locales';
import {$t} from '#/locales';
const BasicLayout = () => import('#/layouts/basic.vue');
const AuthPageLayout = () => import('#/layouts/auth.vue');
@@ -33,6 +33,20 @@ const coreRoutes: RouteRecordRaw[] = [
name: 'OAuth',
path: '/oauth',
},
{
name: 'PublicBotChat',
path: '/embed/chat/:botId',
component: () => import('#/views/publicChat/index.vue'),
meta: {
title: 'PublicChat',
noBasicLayout: true,
hideInMenu: true,
hideInTab: true,
hideInBreadcrumb: true,
ignoreAccess: true,
loaded: true,
},
},
/**
* 根路由
* 使用基础布局作为所有页面的父级容器子级就不必配置BasicLayout。