实现 markdown 代码解析和自动高亮

This commit is contained in:
RockYang
2023-03-23 15:11:02 +08:00
parent c700895d9c
commit a061881d4a
8 changed files with 245 additions and 31 deletions

View File

@@ -5,6 +5,7 @@ import "element-plus/dist/index.css"
import App from './App.vue'
import Chat from './views/Chat.vue'
import NotFound from './views/404.vue'
import TestPage from './views/Test.vue'
import './utils/prototype'
import "./assets/css/bootstrap.min.css"
import {Global} from "@/utils/storage";
@@ -14,7 +15,12 @@ Global['Chat'] = Chat
const routes = [
{
name: 'home', path: '/', component: Chat, meta: {
title: 'ChatGPT-Console'
title: 'WeChat-GPT'
}
},
{
name: 'test', path: '/test', component: TestPage, meta: {
title: '测试页面'
}
},
{