From 7bf29f8ae4cb9fee445c0fb7903ce1b7e6ac831a Mon Sep 17 00:00:00 2001 From: youhang Date: Wed, 19 Jun 2024 10:10:56 +0800 Subject: [PATCH] youyhang --- .env.development | 2 +- generated/core/OpenAPI.ts | 46 +++++++++---------- src/api/user/record.js | 4 +- src/views/MyCourseStudy/courseCollections.vue | 2 +- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.env.development b/.env.development index 330efcc..a24f4fd 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 NODE_ENV = 'development' VITE_APP_TITLE = '无糖运营平台' -VITE_APP_BASE_API = 'http://127.0.0.1:8080' \ No newline at end of file +VITE_APP_BASE_API = 'http://39.106.16.162:8080' \ No newline at end of file diff --git a/generated/core/OpenAPI.ts b/generated/core/OpenAPI.ts index a22d36f..844d48b 100644 --- a/generated/core/OpenAPI.ts +++ b/generated/core/OpenAPI.ts @@ -2,31 +2,31 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { ApiRequestOptions } from './ApiRequestOptions'; +import type { ApiRequestOptions } from './ApiRequestOptions' -type Resolver = (options: ApiRequestOptions) => Promise; -type Headers = Record; +type Resolver = (options: ApiRequestOptions) => Promise +type Headers = Record export type OpenAPIConfig = { - BASE: string; - VERSION: string; - WITH_CREDENTIALS: boolean; - CREDENTIALS: 'include' | 'omit' | 'same-origin'; - TOKEN?: string | Resolver | undefined; - USERNAME?: string | Resolver | undefined; - PASSWORD?: string | Resolver | undefined; - HEADERS?: Headers | Resolver | undefined; - ENCODE_PATH?: ((path: string) => string) | undefined; -}; + BASE: string + VERSION: string + WITH_CREDENTIALS: boolean + CREDENTIALS: 'include' | 'omit' | 'same-origin' + TOKEN?: string | Resolver | undefined + USERNAME?: string | Resolver | undefined + PASSWORD?: string | Resolver | undefined + HEADERS?: Headers | Resolver | undefined + ENCODE_PATH?: ((path: string) => string) | undefined +} export const OpenAPI: OpenAPIConfig = { - BASE: 'http://localhost:8080', - VERSION: '1.0', - WITH_CREDENTIALS: false, - CREDENTIALS: 'include', - TOKEN: undefined, - USERNAME: undefined, - PASSWORD: undefined, - HEADERS: undefined, - ENCODE_PATH: undefined, -}; + BASE: 'http://39.106.16.162:8080', + VERSION: '1.0', + WITH_CREDENTIALS: false, + CREDENTIALS: 'include', + TOKEN: undefined, + USERNAME: undefined, + PASSWORD: undefined, + HEADERS: undefined, + ENCODE_PATH: undefined, +} diff --git a/src/api/user/record.js b/src/api/user/record.js index eeeff3e..edbafc1 100644 --- a/src/api/user/record.js +++ b/src/api/user/record.js @@ -1,10 +1,10 @@ import request from '@/utils/request' //获取浏览记录列表 export const getRecordListService = (params) => - request.get('http://localhost:8080/learningrecords/getall', { params }) + request.get('http://39.106.16.162:8080/learningrecords/getall', { params }) //删除浏览记录 export function DelRecordService(ids) { return request.delete( - `http://localhost:8080/learningrecords/delete?ids=${ids}`, + `http://39.106.16.162:8080/learningrecords/delete?ids=${ids}`, ) } diff --git a/src/views/MyCourseStudy/courseCollections.vue b/src/views/MyCourseStudy/courseCollections.vue index 3916d9d..6c4f718 100644 --- a/src/views/MyCourseStudy/courseCollections.vue +++ b/src/views/MyCourseStudy/courseCollections.vue @@ -175,7 +175,7 @@ const handleCurrentChange = (val: number) => { margin: 0; } -::v-deep .el-tabs__header { +:deep(.el-tabs__header) { margin-bottom: 5px; }