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