From 88342c203ee80bd5c93da4f1537bf1d6c73b3acb Mon Sep 17 00:00:00 2001 From: JayChou <2064936853@qq.com> Date: Wed, 28 Aug 2024 15:52:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/course.ts | 4 ++-- src/views/scientificResearch/index.vue | 11 +++++++---- vite.config.ts | 1 + 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/api/course.ts b/src/api/course.ts index be7b153..9a0c71f 100644 --- a/src/api/course.ts +++ b/src/api/course.ts @@ -31,7 +31,7 @@ export const getCourseChapter = (params: any) => { // 获取所有课程资源 export const getCourseFiles = (params: any) => { return request({ - url: '/api/resource/queryByCourseId', + url: '/api/resource/graph/queryByCourseId', params, }) } @@ -45,7 +45,7 @@ export const getFileStreams = (params: any) => { // 查询课程资源 export const getCourseOneFiles = (params: any) => { return request({ - url: '/api/resource/queryBesidesKnow', + url: '/api/resource/graph/queryBesidesKnow', params, }) } diff --git a/src/views/scientificResearch/index.vue b/src/views/scientificResearch/index.vue index f97c616..6ffb3fc 100644 --- a/src/views/scientificResearch/index.vue +++ b/src/views/scientificResearch/index.vue @@ -1,11 +1,14 @@ - - diff --git a/vite.config.ts b/vite.config.ts index 11d9d0c..96be640 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,6 +38,7 @@ export default defineConfig({ resolve: { alias: { '@': path.resolve('./src'), // 相对路径别名配置,使用 @ 代替 src + // 'vue': 'vue/dist/vue.esm-bundler.js', }, }, css: {