From 5221d1cc91f20bd9b1e56c952a567c052ce4a518 Mon Sep 17 00:00:00 2001 From: oneao Date: Wed, 24 Dec 2025 22:27:48 +0800 Subject: [PATCH] u --- .../link56-frontend-new/src/layout/index.vue | 9 +- .../src/request/api/post/index.ts | 9 +- .../src/request/api/post/tag.ts | 6 - .../src/types/post/index.ts | 8 + .../link56-frontend-new/src/types/post/tag.ts | 4 - .../views/post/home/components/post-list.vue | 2 +- .../src/views/post/home/index.vue | 77 +++++-- .../src/views/settings/creator/editor.vue | 31 ++- .../src/views/settings/creator/home/index.vue | 44 ++-- .../src/views/settings/index.vue | 60 +++--- .../src/views/settings/info/company.vue | 190 ++++++++++-------- .../src/views/settings/info/user/index.vue | 6 +- 12 files changed, 280 insertions(+), 166 deletions(-) delete mode 100644 code/link56/link56-frontend-new/src/request/api/post/tag.ts delete mode 100644 code/link56/link56-frontend-new/src/types/post/tag.ts 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>({
- +