From 48fc0097c848cea64ad15f96eb06d35488adfb8b Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 7 Feb 2023 19:08:37 +0800 Subject: [PATCH] fix(nc-gui): use import ~/assets to translate to _nuxt path --- packages/nc-gui/composables/useAttachment.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/composables/useAttachment.ts b/packages/nc-gui/composables/useAttachment.ts index 8e22871774..dc46ad7f86 100644 --- a/packages/nc-gui/composables/useAttachment.ts +++ b/packages/nc-gui/composables/useAttachment.ts @@ -1,9 +1,8 @@ +import fileNotFoundImgSrc from '~/assets/img/file-not-found.png' + const useAttachment = () => { const { appInfo } = useGlobal() - // TODO: not hardcode _nuxt - const fileNotFoundImgSrc = `/_nuxt/assets/img/file-not-found.png` - const getAttachmentSrc = (item: Record) => { if (item?.data) { return item.data