refactor: Clean code

This commit is contained in:
Net 2024-08-29 09:58:51 +07:00
parent 5b2785c75d
commit e7c6a31bbf
2 changed files with 1 additions and 2 deletions

View file

@ -266,7 +266,7 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
</div>
<div class="q-pa-sm bordered-r bordered-b full-height col scroll">
<slot name="form" :mode="currentMode" />
<slot name="form" :mode="currentMode.split('.').at(-1)" />
<div class="row items-center">
{{ currentFileSelected }}

View file

@ -187,7 +187,6 @@ defineProps<{
Record<string, { label: string; file: { label: string }[] }>
>((a, c) => {
const _group = c.group || 'other';
console.log(c);
if (!a[_group]) {
a[_group] = {