mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-16 08:38:48 +00:00
解决 eps 解析异常
This commit is contained in:
parent
bc30b0d891
commit
e622e50f22
@ -92,13 +92,16 @@ export function useEps(service: Service) {
|
||||
|
||||
// 设置
|
||||
async function set(d: any, c?: boolean) {
|
||||
// 接口列表
|
||||
const list: any[] = [];
|
||||
|
||||
if (!d) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isArray(d)) {
|
||||
d = { d };
|
||||
}
|
||||
|
||||
for (const i in d) {
|
||||
if (isArray(d[i])) {
|
||||
d[i].forEach((e: any) => {
|
||||
@ -200,7 +203,7 @@ export function useEps(service: Service) {
|
||||
};
|
||||
});
|
||||
|
||||
set({ eps });
|
||||
set(eps);
|
||||
} catch (err) {
|
||||
console.error("[Eps] 解析失败!", err);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user