mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-14 14:52:49 +00:00
优化
This commit is contained in:
parent
32359861b5
commit
6210f18a8b
@ -34,7 +34,7 @@ async function getData(temps?: Eps.Entity[]) {
|
|||||||
try {
|
try {
|
||||||
list = JSON.parse(readFile(join(DistPath, "eps.json")) || "[]");
|
list = JSON.parse(readFile(join(DistPath, "eps.json")) || "[]");
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
error(`[eps] ${join(DistPath, "eps.json")} 文件异常, ${err.message}`);
|
error(`[cool-eps] ${join(DistPath, "eps.json")} 文件异常, ${err.message}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 远程地址
|
// 远程地址
|
||||||
@ -55,7 +55,7 @@ async function getData(temps?: Eps.Entity[]) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
error(`[eps] 后端未启动 ➜ ${url}`);
|
error(`[cool-eps] 后端未启动 ➜ ${url}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
// 合并本地数据
|
// 合并本地数据
|
||||||
|
|||||||
@ -43,7 +43,7 @@ function onUpdate() {
|
|||||||
// 遍历每一个方法
|
// 遍历每一个方法
|
||||||
set(eps.service);
|
set(eps.service);
|
||||||
|
|
||||||
// 合并[eps]
|
// 合并 eps
|
||||||
merge(service, eps.service);
|
merge(service, eps.service);
|
||||||
|
|
||||||
// 合并[local]
|
// 合并[local]
|
||||||
@ -63,7 +63,7 @@ function onUpdate() {
|
|||||||
|
|
||||||
// 提示
|
// 提示
|
||||||
if (isDev) {
|
if (isDev) {
|
||||||
console.log("[eps] update");
|
console.log("[cool-eps] updated");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user