diff --git a/src/api/home.ts b/src/api/home.ts index e5eb140..f754939 100644 --- a/src/api/home.ts +++ b/src/api/home.ts @@ -1,9 +1,9 @@ -import request from "@/utils/request"; -import { requestIdleCallback } from "@/types/index"; -export function loadImage(callback: requestIdleCallback): void { +import request from '@/utils/request'; +import { requestCallback } from '@/types/index'; +export function loadData(callback: requestCallback): void { return request( { - url: `/api/links/bingWallpaper`, + url: `/first`, method: `get`, }, callback diff --git a/src/components/Crud/index.vue b/src/components/Crud/index.vue index 3c4af2b..5905e58 100644 --- a/src/components/Crud/index.vue +++ b/src/components/Crud/index.vue @@ -1,14 +1,48 @@