용어집 수정

This commit is contained in:
Dang 2025-02-27 14:21:19 +09:00
parent 0c67d70233
commit 3a78dc6355
4 changed files with 10 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -27,7 +27,7 @@
<strong class="mx-2 w-75">{{ item.WRDDICTTL }}</strong>
</div>
</div>
<p class="mt-5" v-html="$common.contentToHtml(item.WRDDICCON)"></p>
<p class="mt-5 dict-content-wrap" v-html="$common.contentToHtml(item.WRDDICCON)"></p>
<div class="d-flex justify-content-between flex-wrap gap-2 mb-2">
<div class="d-flex flex-wrap align-items-center mb-50">
<div class="avatar avatar-sm me-2">
@ -40,7 +40,7 @@
/>
</div>
<div>
<p class="mb-0 small fw-medium">{{ formattedDate(item.author.createdAt) }}</p>
<p class="mb-0 small fw-medium">{{ $common.dateFormatter(item.author.createdAt) }}</p>
</div>
</div>
</div>
@ -59,7 +59,7 @@
/>
</div>
<div>
<p class="mb-0 small fw-medium">{{ formattedDate(item.lastEditor.updatedAt) }}</p>
<p class="mb-0 small fw-medium">{{ $common.dateFormatter(item.lastEditor.updatedAt) }}</p>
</div>
</div>
</div>
@ -78,7 +78,6 @@ import { ref, toRefs, getCurrentInstance, } from 'vue';
import EditBtn from '@/components/button/EditBtn.vue';
import $api from '@api';
import DictWrite from './DictWrite.vue';
import { formattedDate } from "@/common/formattedDate";
import { useUserInfoStore } from '@s/useUserInfoStore';
import { useWriteVisibleStore } from '@s/writeVisible';

View File

@ -171,7 +171,9 @@ const saveWord = () => {
//
let inserts = [];
if (inserts.length === 0 && content.value?.ops?.length > 0) {
inserts = content.value.ops.map(op => op.insert.trim());
inserts = content.value.ops.map(op =>
typeof op.insert === 'string' ? op.insert.trim() : op.insert
);
}
//

View File

@ -230,7 +230,7 @@
// isWriteVisible.value = false;
writeStore.closeAll();
getwordList();
const newCategory = { label: data, value: category }; // data
const newCategory = { label: data, value: category };
cateList.value = [newCategory, ...cateList.value];
}
});