diff --git a/public/loading.jpg b/public/loading.jpg new file mode 100644 index 0000000..4e8a8f7 Binary files /dev/null and b/public/loading.jpg differ diff --git a/src/main.ts b/src/main.ts index a7865d7..2fd15df 100644 --- a/src/main.ts +++ b/src/main.ts @@ -25,7 +25,6 @@ import db from '@/utils/db' import { T } from '@/i18n/index' import { store } from '@/store' import { initTalkingData } from '@/utils/analytic' -import { dragMixin } from '@/utils/mixin' webFrame.setVisualZoomLevelLimits(1, 1) @@ -37,11 +36,12 @@ app.config.globalProperties.triggerRPC = triggerRPC app.config.globalProperties.sendRPC = sendRPC app.config.globalProperties.sendToMain = sendToMain -app.mixin(dragMixin) const pinia = createPinia() pinia.use(piniaPluginPersistedstate) app.use(VueLazyLoad, { - error: `file://${__static.replace(/\\/g, '/')}/unknown-file-type.svg` + loading: `file://${__static.replace(/\\/g, '/')}/loading.jpg`, + error: `file://${__static.replace(/\\/g, '/')}/unknown-file-type.svg`, + delay: 500 }) app.use(ElementUI) app.use(router) diff --git a/src/renderer/pages/Gallery.vue b/src/renderer/pages/Gallery.vue index d431292..60f92da 100644 --- a/src/renderer/pages/Gallery.vue +++ b/src/renderer/pages/Gallery.vue @@ -184,7 +184,12 @@ class="gallery-list__img" >