perf: 部分优化

This commit is contained in:
wangdan-fit2cloud 2024-07-10 15:00:08 +08:00
parent dd924964e8
commit a8d4e3c82e
3 changed files with 7 additions and 3 deletions

View File

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

View File

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

View File

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