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: {