From 01b0a2dccbbe6520cdf4e7af5b3e2f6949166a85 Mon Sep 17 00:00:00 2001 From: significative <163999932+significative@users.noreply.github.com> Date: Wed, 28 Aug 2024 09:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=AD=A6=E4=B9=A0=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- generated/core/OpenAPI.ts | 3 +- src/views/MyCourseStudy/learningProcess.vue | 91 ++++++++------------- 3 files changed, 39 insertions(+), 59 deletions(-) diff --git a/.env.development b/.env.development index 600aee7..c8c89d1 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 NODE_ENV = 'development' VITE_APP_TITLE = '无糖运营平台' -VITE_APP_BASE_API = 'http://127.0.0.1:8080' -# VITE_APP_BASE_API = 'http://39.106.16.162:8080' +# VITE_APP_BASE_API = 'http://127.0.0.1:8080' +VITE_APP_BASE_API = 'http://39.106.16.162:8080' diff --git a/generated/core/OpenAPI.ts b/generated/core/OpenAPI.ts index 685abe2..ea14d7e 100644 --- a/generated/core/OpenAPI.ts +++ b/generated/core/OpenAPI.ts @@ -22,7 +22,8 @@ export type OpenAPIConfig = { export const OpenAPI: OpenAPIConfig = { //BASE: 'http://39.106.16.162:8080', - BASE: 'http://127.0.0.1:8080', + // BASE: 'http://127.0.0.1:8080', + BASE: import.meta.env.VITE_APP_BASE_API, VERSION: '1.0.0', WITH_CREDENTIALS: false, CREDENTIALS: 'include', diff --git a/src/views/MyCourseStudy/learningProcess.vue b/src/views/MyCourseStudy/learningProcess.vue index fde2a54..4c58175 100644 --- a/src/views/MyCourseStudy/learningProcess.vue +++ b/src/views/MyCourseStudy/learningProcess.vue @@ -140,61 +140,29 @@ const goToAnotherPage = (address, courseId) => {
{{ record.courseName }}
@@ -202,17 +170,29 @@ const goToAnotherPage = (address, courseId) => {{{ record.time }}
学习人数:{{ record.number }}