From b65e44a020ffb34ac2e872e4afac9a4909140b66 Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期四, 01 八月 2024 09:30:40 +0800
Subject: [PATCH] 配置页面bug的修改
---
src/api/authority.ts | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/api/authority.ts b/src/api/authority.ts
index 3db14ab..682fe96 100644
--- a/src/api/authority.ts
+++ b/src/api/authority.ts
@@ -8,7 +8,8 @@
email: string;
phoneNumber: string;
dept: any;
- resources:any;
+ resources: any;
+ knowledges:any;
createTime: string;
status: string;
}
@@ -37,13 +38,20 @@
"orderNum": string;
"target": string;
"parentId": string;
- "parentName":string;
+ "parentName": string;
"children": any;
"syesourcetype": string;
"status": string;
"path": string;
"perms": string;
"menuType": string;
+}
+
+export interface Knowledge {
+ "knowledgeId": string;
+ "createTime": string;
+ "updateTime": string;
+ "knowledgeName": string;
}
export interface Result<T> {
@@ -121,4 +129,8 @@
export function ResourceById(id) {
return axios.get<Result<Resource>>("/base/system/menu/" + id);
+}
+
+export function KnowledgeList() {
+ return axios.get<Result<Knowledge>>("/base/system/knowledge/list");
}
\ No newline at end of file
--
Gitblit v1.8.0