more chat role is ready, and add API to add new chat role

This commit is contained in:
RockYang
2023-04-08 09:39:03 +08:00
parent df7d4d5b94
commit df9e587300
21 changed files with 231 additions and 104 deletions

View File

@@ -7,16 +7,22 @@ import ChatPlus from "@/views/ChatPlus.vue";
import Chat from "@/views/Chat.vue";
import NotFound from './views/404.vue'
import TestPage from './views/Test.vue'
import Home from "@/views/Home.vue";
import './utils/prototype'
const routes = [
{
name: 'chat-plus', path: '/', component: ChatPlus, meta: {
name: 'home', path: '/', component: Home, meta: {
title: 'ChatGPT-Plus'
}
},
{
name: 'plus', path: '/plus', component: ChatPlus, meta: {
title: 'ChatGPT-Plus for PC'
}
},
{
name: 'chat-mobile', path: '/mobile', component: Chat, meta: {
name: 'mobile', path: '/mobile', component: Chat, meta: {
title: 'ChatGPT-Plus for Mobile'
}
},