Browse Source

fix(nc-gui): use import ~/assets to translate to _nuxt path

pull/5046/head
Wing-Kam Wong 2 years ago
parent
commit
48fc0097c8
  1. 5
      packages/nc-gui/composables/useAttachment.ts

5
packages/nc-gui/composables/useAttachment.ts

@ -1,9 +1,8 @@
import fileNotFoundImgSrc from '~/assets/img/file-not-found.png'
const useAttachment = () => { const useAttachment = () => {
const { appInfo } = useGlobal() const { appInfo } = useGlobal()
// TODO: not hardcode _nuxt
const fileNotFoundImgSrc = `/_nuxt/assets/img/file-not-found.png`
const getAttachmentSrc = (item: Record<string, any>) => { const getAttachmentSrc = (item: Record<string, any>) => {
if (item?.data) { if (item?.data) {
return item.data return item.data

Loading…
Cancel
Save