optimize the logic for showing chat history

This commit is contained in:
RockYang
2023-04-20 11:56:33 +08:00
parent efc1ea5d8b
commit 296d83c3a1
6 changed files with 603 additions and 597 deletions

View File

@@ -5,19 +5,8 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="favicon.ico">
<title>ChatGPT 助手</title>
<style>
* {
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
</style>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<title>ChatGPT-Plus</title>
</head>
<body>
@@ -25,7 +14,6 @@
<strong>请开启JavaScript支持</strong>
</noscript>
<div id="app"></div>
<script type="module" src="src/main.js"></script>
</body>
</html>

View File

@@ -1,4 +1,4 @@
import {createRouter, createWebHistory} from 'vue-router'
import {createRouter, createWebHashHistory} from 'vue-router'
import {createApp} from 'vue'
import ElementPlus from "element-plus"
import "element-plus/dist/index.css"
@@ -45,7 +45,7 @@ const routes = [
]
const router = createRouter({
history: createWebHistory(),
history: createWebHashHistory(),
routes: routes,
})

View File

@@ -679,8 +679,16 @@ export default defineComponent({
.tip-text {
text-align left
padding 10px 20px;
line-height 1.5
padding 0 20px 10px 20px;
.el-alert {
padding 5px;
.el-alert__description {
font-size 14px;
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -16,10 +16,7 @@ module.exports = defineConfig({
]
},
publicPath: process.env.NODE_ENV === 'production'
? '/chat'
: '/',
publicPath: process.env.NODE_ENV === 'production' ? '/chat' : '/',
outputDir: '../dist',
crossorigin: "anonymous",
devServer: {