diff --git a/package.json b/package.json index d0fa001..1bc80a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "MegSpot", - "version": "v2.2.20", + "version": "v2.2.21", "author": "weiyajun ", "description": "A tool to improve the viewing of pictures and videos by researchers", "homepage": "https://github.com/MegEngine/MegSpot", @@ -44,8 +44,8 @@ "appId": "org.megvii.megspot", "copyright": " Copyright (c) 2022 Megvii Inc. All rights reserved.", "releaseInfo": { - "releaseNotes": "一、修复:\n 1. 修复新图像模式下的旋转和翻转。", - "releaseDate": "2024.00.22" + "releaseNotes": "一、性能优化:\n 1. 对gallery画廊的图像列表启用懒加载,解决了文件过多时导致的卡顿问题", + "releaseDate": "2024.10.28" }, "directories": { "output": "build" @@ -125,6 +125,7 @@ "vue": "^2.6.12", "vue-awesome-swiper": "^4.1.1", "vue-i18n": "^8.22.4", + "vue-lazyload": "1.3.3", "vue-router": "^3.4.9", "vue-split-panel": "^1.0.4", "vuedraggable": "^2.24.3", diff --git a/src/renderer/components/gallery/index.vue b/src/renderer/components/gallery/index.vue index b0901c5..bde46ea 100644 --- a/src/renderer/components/gallery/index.vue +++ b/src/renderer/components/gallery/index.vue @@ -52,8 +52,8 @@
- -
diff --git a/src/renderer/main.js b/src/renderer/main.js index 08e125b..53c6cc6 100644 --- a/src/renderer/main.js +++ b/src/renderer/main.js @@ -20,10 +20,12 @@ import VXETable from 'vxe-table' import 'vxe-table/lib/style.css' import VueSplit from 'vue-split-panel' import VueScroll from 'vuescroll' +import VueLazyload from 'vue-lazyload' import { initEventBus } from '@/utils/bus' import { initAnalyze } from '@/utils/analyze' +Vue.use(VueLazyload) Vue.use(VXETable) Vue.use(VueSplit) Vue.use(VueScroll)