This commit is contained in:
@@ -28,7 +28,7 @@ export const createServiceOrder = (data: any) => {
|
||||
|
||||
// VB Courses
|
||||
export const getVBCourses = () => request({ url: '/courses/' })
|
||||
export const getVBCourseDetail = (id: number) => request({ url: `/courses/${id}/` })
|
||||
export const getVBCourseDetail = (id: number) => request({ url: `/courses/${id}/?_t=${Date.now()}` })
|
||||
|
||||
// Distributor
|
||||
export const distributorRegister = (data: any) => {
|
||||
|
||||
@@ -118,6 +118,7 @@
|
||||
font-size: 32px;
|
||||
margin-bottom: 30px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.btn-unlock {
|
||||
|
||||
@@ -20,7 +20,9 @@ export default function CourseDetail() {
|
||||
|
||||
const fetchDetail = async (id: string) => {
|
||||
try {
|
||||
// Add timestamp to prevent caching
|
||||
const res: any = await getVBCourseDetail(Number(id))
|
||||
console.log('Course detail:', res)
|
||||
setDetail(res)
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
|
||||
Reference in New Issue
Block a user