update

parent 9dc0c804
...@@ -620,6 +620,19 @@ export type ListBannerConfig = { ...@@ -620,6 +620,19 @@ export type ListBannerConfig = {
updateTime: string; 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 = { export type DetailBannerConfig = {
id: number; id: number;
name: string; name: string;
......
...@@ -88,7 +88,7 @@ import { ...@@ -88,7 +88,7 @@ import {
FileUploadType, FileUploadType,
ListBannerConfig, ListBannerConfig,
DetailBannerConfig, DetailBannerConfig,
ListHomeConfig,
AddBannerConfig, AddBannerConfig,
} from 'src/assets/type'; } from 'src/assets/type';
import { config, API_PATHS } from 'src/assets/configurations.example'; import { config, API_PATHS } from 'src/assets/configurations.example';
...@@ -198,7 +198,7 @@ export default defineComponent({ ...@@ -198,7 +198,7 @@ export default defineComponent({
name: nameBanner.value, name: nameBanner.value,
}, },
})) as AxiosResponse< })) as AxiosResponse<
BaseResponseBody<PaginationResponse<ListBannerConfig[]>> BaseResponseBody<PaginationResponse<ListHomeConfig[]>>
>; >;
if (response.data.error.code === config.API_RES_CODE.OK.code) { if (response.data.error.code === config.API_RES_CODE.OK.code) {
bannerTableRows.value = response.data.data.data; 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