update

parent 9dc0c804
......@@ -620,6 +620,19 @@ export type ListBannerConfig = {
updateTime: string;
};
export type ListHomeConfig = {
artistId: number,
artistName: {
artistName: string,
id: number
},
code: string,
embeddedUrl: string,
id: number,
imageUrl: string,
name: string
}
export type DetailBannerConfig = {
id: number;
name: string;
......
......@@ -88,7 +88,7 @@ import {
FileUploadType,
ListBannerConfig,
DetailBannerConfig,
ListHomeConfig,
AddBannerConfig,
} from 'src/assets/type';
import { config, API_PATHS } from 'src/assets/configurations.example';
......@@ -198,7 +198,7 @@ export default defineComponent({
name: nameBanner.value,
},
})) as AxiosResponse<
BaseResponseBody<PaginationResponse<ListBannerConfig[]>>
BaseResponseBody<PaginationResponse<ListHomeConfig[]>>
>;
if (response.data.error.code === config.API_RES_CODE.OK.code) {
bannerTableRows.value = response.data.data.data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment