perf: 部分优化

perf: 部分优化
This commit is contained in:
wangdan-fit2cloud 2024-07-10 00:01:25 -07:00 committed by GitHub
commit 6054dcf774
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View File

@ -53,7 +53,11 @@
<div class="p-8-12 border-t-dashed lighter">
<template v-if="item.paragraph_list?.length > 0">
<template
v-for="(paragraph, paragraphIndex) in item.paragraph_list"
v-for="(paragraph, paragraphIndex) in arraySort(
item.paragraph_list,
'similarity',
true
)"
:key="paragraphIndex"
>
<ParagraphCard :data="paragraph" :index="paragraphIndex" />

View File

@ -10,7 +10,7 @@
</template>
<script setup lang="ts">
import { TopBar, Sidebar, AppMain } from '../components'
import { Sidebar, AppMain } from '../components'
</script>
<style lang="scss">
.sidebar-container {

View File

@ -180,7 +180,7 @@ const submitValid = (formEl: FormInstance | undefined) => {
common
.asyncGetValid(ValidType.Application, ValidCount.Application, loading)
.then(async (res: any) => {
if (res?.data?.data) {
if (res?.data) {
submitHandle(formEl)
} else {
MsgAlert(