update 端口

develoop
yh 3 months ago
parent 2fec3ce73f
commit 4cfb5abef4
  1. 2
      .env.production
  2. 2
      .env.test
  3. 1
      .eslintrc.cjs
  4. BIN
      dist.zip
  5. 2
      package.json
  6. 8
      src/api/course.ts
  7. 1
      vite.config.ts

@ -1,3 +1,3 @@
NODE_ENV = 'production'
VITE_APP_TITLE = '教学一体化平台'
VITE_APP_BASE_API = '/api'
# VITE_APP_BASE_API = '/api'

@ -1,4 +1,4 @@
# 变量必须以 VITE_ 为前缀才能暴露给外部读取
NODE_ENV = 'test'
VITE_APP_TITLE = '教学一体化平台'
VITE_APP_BASE_API = '/api'
# VITE_APP_BASE_API = '/api'

@ -1,6 +1,7 @@
// @see https://eslint.bootcss.com/docs/rules/
module.exports = {
publicPath:"/portal",
env: {
browser: true,
es2021: true,

Binary file not shown.

@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite --open",
"build:test": "vue-tsc && vite build --mode test",
"build:test": "vite build",
"build:pro": "vue-tsc && vite build --mode production",
"preview": "vite preview",
"lint": "eslint src",

@ -11,7 +11,7 @@ export const getCourseList = (params: object) => {
// 获取课程图谱
export const getCourseAtlas = (params: object) => {
return request({
url: '/knowNeo/getAllKnowByCourseId',
url: '/api/knowNeo/getAllKnowByCourseId',
params,
})
}
@ -23,7 +23,7 @@ export const getCourseAtlas = (params: object) => {
// }
export const getCourseChapter = (params: any) => {
return request({
url: '/chapter2/chapter',
url: '/api/chapter2/chapter',
params,
})
}
@ -31,14 +31,14 @@ export const getCourseChapter = (params: any) => {
// 获取所有课程资源
export const getCourseFiles = (params:any) => {
return request({
url:'/resource/queryByCourseId',
url:'/api/resource/queryByCourseId',
params
})
}
// 获取文件流
export const getFileStreams = (params:any) => {
return request({
url:'/resource/read',
url:'/api/resource/read',
params
})
}

@ -20,6 +20,7 @@ const px2remOptions = {
minPixelValue: 0 , //设置要替换的最小像素值(3px会被转rem)。 默认 0
}
export default defineConfig({
base:'/portal',
plugins: [
vue(),
// 配置svg插件

Loading…
Cancel
Save