import { nextTick, unref } from 'vue' import { useConfig } from '@/store/modules/asideConfig' const downloadSvg = '' export function hideDownload(e: MouseEvent) { nextTick(() => { const configStore = useConfig() const downloadEle: any = document.querySelector('.n-image-preview-toolbar')?.children[5] const asideValue = unref(configStore.getAsideValue) const download = asideValue?.izimgdownload if (downloadEle && downloadEle.innerHTML === downloadSvg && download === false) downloadEle.style.display = 'none' else downloadEle.style.display = 'block' }) }