From 051dbdf4a29e3a7230204d71808a7874b1ad06b9 Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Thu, 19 Dec 2024 18:42:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AE=AB=E6=A0=BC=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/grid-pic/index.vue | 84 ++++++++++--- .../src/components/grid-pic/viewer-item.vue | 110 ++++++++++++++++-- src/renderer/src/main.js | 4 +- src/renderer/src/views/prepare/index.vue | 2 +- 4 files changed, 168 insertions(+), 32 deletions(-) diff --git a/src/renderer/src/components/grid-pic/index.vue b/src/renderer/src/components/grid-pic/index.vue index 8913651..4769a98 100644 --- a/src/renderer/src/components/grid-pic/index.vue +++ b/src/renderer/src/components/grid-pic/index.vue @@ -1,26 +1,35 @@ diff --git a/src/renderer/src/main.js b/src/renderer/src/main.js index ab4962c..a723b75 100644 --- a/src/renderer/src/main.js +++ b/src/renderer/src/main.js @@ -17,8 +17,7 @@ import log from 'electron-log/renderer' // 渲染进程日志-文件记录 import customComponent from '@/components/common' // 自定义组件 import plugins from './plugins' // plugins插件 import useUserStore from '@/store/modules/user' -import VueViewer from 'v-viewer' -import 'viewerjs/dist/viewer.css' + if(process.env.NODE_ENV != 'development') { // 非开发环境,将日志打印到日志文件 Object.assign(console, log.functions) // 渲染进程日志-控制台替换 } @@ -42,7 +41,6 @@ import Directive from '@/AixPPTist/src/plugins/directive' app.use(router) .use(store) - .use(VueViewer) .use(ElementPlus, { locale: zhLocale }) .use(customComponent) // 自定义组件 .use(plugins) diff --git a/src/renderer/src/views/prepare/index.vue b/src/renderer/src/views/prepare/index.vue index ca770aa..b6c80ee 100644 --- a/src/renderer/src/views/prepare/index.vue +++ b/src/renderer/src/views/prepare/index.vue @@ -10,7 +10,7 @@ 新建文枢课件 AI一键生成 - 打开宫格 + 导入PPT