优化修复网站导航的bug
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,6 +9,8 @@ export interface WebsiteField {
|
||||
value?: string;
|
||||
comments?: string;
|
||||
userId?: number;
|
||||
defaultValue?: string;
|
||||
modifyRange?: string;
|
||||
type?: number;
|
||||
status?: any;
|
||||
sortNumber?: any;
|
||||
|
||||
Reference in New Issue
Block a user