From 2f2350531a16b3d7794208122ee89fa48eefbefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=86=E4=B8=AA=E7=99=BD?= <543593352@qq.com> Date: Wed, 20 Nov 2024 16:20:45 +0800 Subject: [PATCH] 1 --- src/renderer/src/router/index.js | 2 -- .../views/classTask/newClassTaskAssign/myQuestion/index.vue | 5 ++--- .../classTask/newClassTaskAssign/questionUpload/index.vue | 3 +++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/router/index.js b/src/renderer/src/router/index.js index 4492b0e..d51538e 100644 --- a/src/renderer/src/router/index.js +++ b/src/renderer/src/router/index.js @@ -154,8 +154,6 @@ const dynamicRoutes = [ name: 'classCorrect', meta: { title: '作业批改', showBread: true } }, - - { path: '/teach', component: () => import('@/views/teach/index.vue'), diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue index f056c9e..4661abe 100644 --- a/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue +++ b/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue @@ -104,9 +104,8 @@ import { delEntpcoursework } from "@/api/education/entpCourseWork"; import examDetailsDrawer from '@/components/exam-question/examDetailsDrawer.vue' import { useHandleData } from "@/hooks/useHandleData"; import { processList } from '@/hooks/useProcessList' -import { useGetHomework } from '@/hooks/useGetHomework' -import { sessionStore } from '@/utils/store' -import {throttle,debounce } from '@/utils/comm' + +import { debounce } from '@/utils/comm' import useUserStore from '@/store/modules/user' const router = useRouter() diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/index.vue index c58711b..6889920 100644 --- a/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/index.vue +++ b/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/index.vue @@ -244,6 +244,9 @@ const getClipboardImg = async() => { for (const item of clipboardItems) { for (const type of item.types) { if (type.includes('image/')) { + console.log('剪贴板图片type', type); + console.log('剪贴板图片item', item); + console.log('剪贴板图片clipboardItems', clipboardItems); const blob = await item.getType(type); // blob 是图片的 Blob 对象 cropOption.img = URL.createObjectURL(blob);