style: optimize code styles

This commit is contained in:
RockYang 2023-06-18 15:17:59 +08:00
parent e7fd29b9cb
commit cd809d17d3
4 changed files with 26 additions and 18 deletions

View File

@ -67,7 +67,7 @@
<script setup>
import {computed, defineEmits, defineProps, onMounted, ref} from "vue"
import {computed, onMounted, ref} from "vue"
import {httpGet, httpPost} from "@/utils/http";
import {ElMessage} from "element-plus";

View File

@ -32,11 +32,10 @@
</template>
<script setup>
import {defineEmits, defineProps, onMounted, ref} from "vue"
import {onMounted, ref} from "vue"
import {httpPost} from "@/utils/http";
import {ElMessage} from "element-plus";
// eslint-disable-next-line no-unused-vars
const props = defineProps({
show: Boolean,
});

View File

@ -183,7 +183,8 @@
</el-main>
</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"/>
</div>
@ -645,6 +646,7 @@ const loadChatHistory = function (chatId) {
}
const md = require('markdown-it')();
// md.use(require('markdown-it-copy')); //
for (let i = 0; i < data.length; i++) {
if (data[i].type === "prompt") {
chatData.value.push(data[i]);
@ -990,6 +992,7 @@ const updateUser = function (data) {
.el-textarea {
max-width 600px;
.el-textarea__inner::-webkit-scrollbar {
width: 0;
height: 0;

View File

@ -10,7 +10,13 @@ module.exports = defineConfig({
},
plugins: [
new webpack.optimize.MinChunkSizePlugin({minChunkSize: 10000})
]
],
// resolve: {
// fallback: {
// fs: false,
// path: require.resolve('path-browserify')
// }
// }
},
publicPath: '/',