diff --git a/src/api/halo-plugin/moment.ts b/src/api/halo-plugin/moment.ts index b9b74a4..3202fb9 100644 --- a/src/api/halo-plugin/moment.ts +++ b/src/api/halo-plugin/moment.ts @@ -10,6 +10,9 @@ const EndpointBase = '/apis/api.moment.halo.run/v1alpha1/moments' export function queryMoments(params: any) { return http.Get(`${EndpointBase}`, { params, + meta: { + isHalo: true, + }, }) } @@ -19,5 +22,9 @@ export function queryMoments(params: any) { * @returns 获取瞬间详情响应参数 */ export function queryMomentByName(name: string) { - return http.Get(`${EndpointBase}/${name}`, {}) + return http.Get(`${EndpointBase}/${name}`, { + meta: { + isHalo: true, + }, + }) } diff --git a/src/pages-blog/page-template/page-template.vue b/src/pages-blog/page-template/page-template.vue index 7835ce2..beaaa87 100644 --- a/src/pages-blog/page-template/page-template.vue +++ b/src/pages-blog/page-template/page-template.vue @@ -1,4 +1,6 @@