mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 16:56:38 +08:00
style: optimize code styles
This commit is contained in:
parent
e7fd29b9cb
commit
cd809d17d3
@ -67,7 +67,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
|
|
||||||
|
|
||||||
import {computed, defineEmits, defineProps, onMounted, ref} from "vue"
|
import {computed, onMounted, ref} from "vue"
|
||||||
import {httpGet, httpPost} from "@/utils/http";
|
import {httpGet, httpPost} from "@/utils/http";
|
||||||
import {ElMessage} from "element-plus";
|
import {ElMessage} from "element-plus";
|
||||||
|
|
||||||
|
@ -32,11 +32,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {defineEmits, defineProps, onMounted, ref} from "vue"
|
import {onMounted, ref} from "vue"
|
||||||
import {httpPost} from "@/utils/http";
|
import {httpPost} from "@/utils/http";
|
||||||
import {ElMessage} from "element-plus";
|
import {ElMessage} from "element-plus";
|
||||||
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
show: Boolean,
|
show: Boolean,
|
||||||
});
|
});
|
||||||
|
@ -183,7 +183,8 @@
|
|||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
|
||||||
<config-dialog :show="showConfigDialog" :models="models" @hide="showConfigDialog = false" @update-user="updateUser" />
|
<config-dialog :show="showConfigDialog" :models="models" @hide="showConfigDialog = false"
|
||||||
|
@update-user="updateUser"/>
|
||||||
<password-dialog :show="showPasswordDialog" @hide="showPasswordDialog = false" @logout="logout"/>
|
<password-dialog :show="showPasswordDialog" @hide="showPasswordDialog = false" @logout="logout"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -645,6 +646,7 @@ const loadChatHistory = function (chatId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const md = require('markdown-it')();
|
const md = require('markdown-it')();
|
||||||
|
// md.use(require('markdown-it-copy')); // 代码复制功能
|
||||||
for (let i = 0; i < data.length; i++) {
|
for (let i = 0; i < data.length; i++) {
|
||||||
if (data[i].type === "prompt") {
|
if (data[i].type === "prompt") {
|
||||||
chatData.value.push(data[i]);
|
chatData.value.push(data[i]);
|
||||||
@ -990,6 +992,7 @@ const updateUser = function (data) {
|
|||||||
|
|
||||||
.el-textarea {
|
.el-textarea {
|
||||||
max-width 600px;
|
max-width 600px;
|
||||||
|
|
||||||
.el-textarea__inner::-webkit-scrollbar {
|
.el-textarea__inner::-webkit-scrollbar {
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
|
@ -10,7 +10,13 @@ module.exports = defineConfig({
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.MinChunkSizePlugin({minChunkSize: 10000})
|
new webpack.optimize.MinChunkSizePlugin({minChunkSize: 10000})
|
||||||
]
|
],
|
||||||
|
// resolve: {
|
||||||
|
// fallback: {
|
||||||
|
// fs: false,
|
||||||
|
// path: require.resolve('path-browserify')
|
||||||
|
// }
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
|
Loading…
Reference in New Issue
Block a user