修改环境变量

develoop
xy 5 months ago
parent d2712808e3
commit 2880679fef
  1. 2
      .env.development
  2. 2
      src/api/courseChaptersApi.ts

@ -1,4 +1,4 @@
# 变量必须以 VITE_ 为前缀才能暴露给外部读取 # 变量必须以 VITE_ 为前缀才能暴露给外部读取
NODE_ENV = 'development' NODE_ENV = 'development'
VITE_APP_TITLE = '无糖运营平台' VITE_APP_TITLE = '无糖运营平台'
VITE_APP_BASE_API = 'http://39.106.16.162:8080' VITE_APP_BASE_API = 'http://127.0.0.1:8080'

@ -101,6 +101,6 @@ export const getCourseInfo = (params: any) => {
return request({ return request({
url: '/objective_contents/' + params.id, url: '/objective_contents/' + params.id,
method: "get", method: "get",
params // params
}) })
} }
Loading…
Cancel
Save