diff --git a/electron.vite.config.mjs b/electron.vite.config.mjs
index 1daadd5..dd0b3a1 100644
--- a/electron.vite.config.mjs
+++ b/electron.vite.config.mjs
@@ -3,6 +3,7 @@ import path from 'path'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import vue from '@vitejs/plugin-vue'
import WindiCSS from "vite-plugin-windicss"
+import vitePpt from './src/renderer/src/plugins/vite-ppt'
/*import electron from 'vite-plugin-electron'
plugins: [electron({
main: {
@@ -55,7 +56,7 @@ export default defineConfig({
}
},
},
- plugins: [vue(), WindiCSS()],
+ plugins: [vue(), WindiCSS(),vitePpt()],
assetsInclude:('**/*.woff', '**/*.woff2', '**/*.ttf'),
css: {
preprocessorOptions: {
diff --git a/src/renderer/src/plugins/vite-ppt.js b/src/renderer/src/plugins/vite-ppt.js
new file mode 100644
index 0000000..cbdffd1
--- /dev/null
+++ b/src/renderer/src/plugins/vite-ppt.js
@@ -0,0 +1,20 @@
+/**
+ * @file vitePpt.js
+ * ppt-list 样式配置
+ */
+
+export default function vitePpt () {
+ return {
+ name: 'vite-ppt',
+ enforce: 'pre',
+ transform(code, id) {
+ if (id.endsWith('.scss')) {
+ // 使用 @use 代替 @import
+ code = code.replace(/@import\s+["']([^"']+)["'];/g, (match, importPath) => {
+ return `@use "${importPath}" as *;`
+ })
+ }
+ return code
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/renderer/src/router/index.js b/src/renderer/src/router/index.js
index 98184de..25b96f6 100644
--- a/src/renderer/src/router/index.js
+++ b/src/renderer/src/router/index.js
@@ -132,7 +132,13 @@ const dynamicRoutes = [
path: 'newClassTaskAssign',
component: () => import('@/views/classTask/newClassTaskAssign/index.vue'),
name: 'newClassTaskAssign',
- meta: { title: '新作业设计', showBread: true }
+ meta: { title: '新作业管理', showBread: true }
+ },
+ {
+ path: 'questionUpload',
+ component: () => import('@/views/classTask/newClassTaskAssign/questionUpload/index.vue'),
+ name: 'questionUpload',
+ meta: { title: '新作业管理', showBread: true }
},
{
path: 'classTask',
diff --git a/src/renderer/src/views/classTask/newClassTask.vue b/src/renderer/src/views/classTask/newClassTask.vue
index 6f3d245..a4791a0 100644
--- a/src/renderer/src/views/classTask/newClassTask.vue
+++ b/src/renderer/src/views/classTask/newClassTask.vue
@@ -16,7 +16,7 @@
作业设计
-
+