develoop
JayChou 3 months ago
parent bbeb4d0ffd
commit 88342c203e
  1. 4
      src/api/course.ts
  2. 11
      src/views/scientificResearch/index.vue
  3. 1
      vite.config.ts

@ -31,7 +31,7 @@ export const getCourseChapter = (params: any) => {
// 获取所有课程资源 // 获取所有课程资源
export const getCourseFiles = (params: any) => { export const getCourseFiles = (params: any) => {
return request({ return request({
url: '/api/resource/queryByCourseId', url: '/api/resource/graph/queryByCourseId',
params, params,
}) })
} }
@ -45,7 +45,7 @@ export const getFileStreams = (params: any) => {
// 查询课程资源 // 查询课程资源
export const getCourseOneFiles = (params: any) => { export const getCourseOneFiles = (params: any) => {
return request({ return request({
url: '/api/resource/queryBesidesKnow', url: '/api/resource/graph/queryBesidesKnow',
params, params,
}) })
} }

@ -1,11 +1,14 @@
<template> <template>
<div>111</div> <div>
111
</div>
</template> </template>
<script lang="ts" setup> <script lang='ts' setup>
import {} from 'vue' import { onMounted, reactive, ref, toRefs, watch } from 'vue'
</script> </script>
<style lang="scss" scoped> <style lang='scss' scoped>
</style> </style>

@ -38,6 +38,7 @@ export default defineConfig({
resolve: { resolve: {
alias: { alias: {
'@': path.resolve('./src'), // 相对路径别名配置,使用 @ 代替 src '@': path.resolve('./src'), // 相对路径别名配置,使用 @ 代替 src
// 'vue': 'vue/dist/vue.esm-bundler.js',
}, },
}, },
css: { css: {

Loading…
Cancel
Save