perf: 部分优化
This commit is contained in:
parent
dd924964e8
commit
a8d4e3c82e
@ -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" />
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user