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) => {
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,
})
}

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

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

Loading…
Cancel
Save