diff --git a/code/link56/link56-frontend-new/src/layout/index.vue b/code/link56/link56-frontend-new/src/layout/index.vue index 886d5e86..906b2888 100644 --- a/code/link56/link56-frontend-new/src/layout/index.vue +++ b/code/link56/link56-frontend-new/src/layout/index.vue @@ -8,9 +8,9 @@ import Header from './components/header.vue'
- + @@ -23,7 +23,8 @@ import Header from './components/header.vue' } .footer { - margin-top: 32px; + background-color: #1f1f1f; + border-top: 1px solid rgb(232.9, 232.9, 232.9); height: 100px; display: flex; align-items: center; diff --git a/code/link56/link56-frontend-new/src/request/api/post/index.ts b/code/link56/link56-frontend-new/src/request/api/post/index.ts index 22757ae0..fa691d53 100644 --- a/code/link56/link56-frontend-new/src/request/api/post/index.ts +++ b/code/link56/link56-frontend-new/src/request/api/post/index.ts @@ -1,4 +1,4 @@ -import type { DashboardData } from '@/types/post' +import type { DashboardData, PostCategory, PostTag } from '@/types/post' import type { AddPostParams, DeletePostParams, Post, PostEditorForm, QueryPostParams, UpdatePostParams, UpdatePostStatusParams } from '@/types/post/editor' import { httpGet, httpPostJson } from '@/request/utils' @@ -29,3 +29,10 @@ export function deletePostApi(params: DeletePostParams) { export function getDashboardDataApi() { return httpGet(`/post/dashboard`) } + +export function getPostTagApi() { + return httpGet('/post/tag') +} +export function getPostCategoryApi() { + return httpGet('/post/category') +} diff --git a/code/link56/link56-frontend-new/src/request/api/post/tag.ts b/code/link56/link56-frontend-new/src/request/api/post/tag.ts deleted file mode 100644 index 4f61407a..00000000 --- a/code/link56/link56-frontend-new/src/request/api/post/tag.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { PostTag } from '@/types/post/tag' -import { httpGet, httpPostJson } from '@/request/utils' - -export function getPostTagApi() { - return httpGet('/post/tag') -} diff --git a/code/link56/link56-frontend-new/src/types/post/index.ts b/code/link56/link56-frontend-new/src/types/post/index.ts index 39ae6eab..0d1688bc 100644 --- a/code/link56/link56-frontend-new/src/types/post/index.ts +++ b/code/link56/link56-frontend-new/src/types/post/index.ts @@ -16,3 +16,11 @@ export interface DashboardData { viewChart: DashboradChart[] typeChart: DashboradChart[] } +export interface PostTag { + id: number + name: string +} +export interface PostCategory { + id: number + name: string +} diff --git a/code/link56/link56-frontend-new/src/types/post/tag.ts b/code/link56/link56-frontend-new/src/types/post/tag.ts deleted file mode 100644 index b73a8198..00000000 --- a/code/link56/link56-frontend-new/src/types/post/tag.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface PostTag { - id: number - name: string -} diff --git a/code/link56/link56-frontend-new/src/views/post/home/components/post-list.vue b/code/link56/link56-frontend-new/src/views/post/home/components/post-list.vue index d7510a86..e17b9666 100644 --- a/code/link56/link56-frontend-new/src/views/post/home/components/post-list.vue +++ b/code/link56/link56-frontend-new/src/views/post/home/components/post-list.vue @@ -15,7 +15,7 @@ const dataResult = ref>({
- +