优化修复网站导航的bug

This commit is contained in:
2024-08-28 23:55:01 +08:00
parent 31ec8e057a
commit 2655874948
34 changed files with 1764 additions and 849 deletions
+10
View File
@@ -141,3 +141,13 @@ export async function checkExistence(
}
return Promise.reject(new Error(res.data.message));
}
export async function getCount(params: ArticleParam) {
const res = await request.get(MODULES_API_URL + '/cms/article/data', {
params
});
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
+1 -1
View File
@@ -66,7 +66,7 @@ export interface ArticleParam extends PageParam {
articleId?: number;
categoryId?: number;
navigationId?: number;
status?: string;
status?: number;
sortNumber?: string;
createTime?: string;
username?: string;
+9
View File
@@ -4,13 +4,20 @@
export interface Navigation {
navigationId?: number;
parentId?: number;
parentName?: string;
parentPath?: string;
title?: string;
code?: string;
path?: string;
icon?: string;
component?: string;
model?: string;
modelName?: string;
type?: number;
sortNumber?: number;
hide?: number;
permission?: number;
password?: string;
home?: number;
position?: number;
top?: number;
@@ -31,6 +38,8 @@ export interface Navigation {
pageName?: string;
createTime?: string;
isMpWeixin?: boolean;
label?: string;
value?: number;
}
/**
+2
View File
@@ -9,6 +9,8 @@ export interface WebsiteField {
value?: string;
comments?: string;
userId?: number;
defaultValue?: string;
modifyRange?: string;
type?: number;
status?: any;
sortNumber?: any;