develoop
youhang 5 months ago
parent 58fb85ba3a
commit 7bf29f8ae4
  1. 2
      .env.development
  2. 30
      generated/core/OpenAPI.ts
  3. 4
      src/api/user/record.js
  4. 2
      src/views/MyCourseStudy/courseCollections.vue

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

@ -2,25 +2,25 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { ApiRequestOptions } from './ApiRequestOptions'; import type { ApiRequestOptions } from './ApiRequestOptions'
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>; type Resolver<T> = (options: ApiRequestOptions) => Promise<T>
type Headers = Record<string, string>; type Headers = Record<string, string>
export type OpenAPIConfig = { export type OpenAPIConfig = {
BASE: string; BASE: string
VERSION: string; VERSION: string
WITH_CREDENTIALS: boolean; WITH_CREDENTIALS: boolean
CREDENTIALS: 'include' | 'omit' | 'same-origin'; CREDENTIALS: 'include' | 'omit' | 'same-origin'
TOKEN?: string | Resolver<string> | undefined; TOKEN?: string | Resolver<string> | undefined
USERNAME?: string | Resolver<string> | undefined; USERNAME?: string | Resolver<string> | undefined
PASSWORD?: string | Resolver<string> | undefined; PASSWORD?: string | Resolver<string> | undefined
HEADERS?: Headers | Resolver<Headers> | undefined; HEADERS?: Headers | Resolver<Headers> | undefined
ENCODE_PATH?: ((path: string) => string) | undefined; ENCODE_PATH?: ((path: string) => string) | undefined
}; }
export const OpenAPI: OpenAPIConfig = { export const OpenAPI: OpenAPIConfig = {
BASE: 'http://localhost:8080', BASE: 'http://39.106.16.162:8080',
VERSION: '1.0', VERSION: '1.0',
WITH_CREDENTIALS: false, WITH_CREDENTIALS: false,
CREDENTIALS: 'include', CREDENTIALS: 'include',
@ -29,4 +29,4 @@ export const OpenAPI: OpenAPIConfig = {
PASSWORD: undefined, PASSWORD: undefined,
HEADERS: undefined, HEADERS: undefined,
ENCODE_PATH: undefined, ENCODE_PATH: undefined,
}; }

@ -1,10 +1,10 @@
import request from '@/utils/request' import request from '@/utils/request'
//获取浏览记录列表 //获取浏览记录列表
export const getRecordListService = (params) => 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) { export function DelRecordService(ids) {
return request.delete( return request.delete(
`http://localhost:8080/learningrecords/delete?ids=${ids}`, `http://39.106.16.162:8080/learningrecords/delete?ids=${ids}`,
) )
} }

@ -175,7 +175,7 @@ const handleCurrentChange = (val: number) => {
margin: 0; margin: 0;
} }
::v-deep .el-tabs__header { :deep(.el-tabs__header) {
margin-bottom: 5px; margin-bottom: 5px;
} }

Loading…
Cancel
Save