abler-api 0.1.68 → 0.1.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/pp-util.js +5 -1
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -1742,7 +1742,9 @@ async function createEnvSettingFile(fileName, lastEnvSettingEx) {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
|
|
1744
1744
|
async function checkExEnvSetting(loadjs) {
|
|
1745
|
-
if (
|
|
1745
|
+
if (conf$2._envSetting.localSettingImported) return "";
|
|
1746
|
+
|
|
1747
|
+
try {
|
|
1746
1748
|
let fileName = conf$2.getEnvSettingFileName();
|
|
1747
1749
|
|
|
1748
1750
|
if (!fs.existsSync(fileName)) {
|
|
@@ -1771,6 +1773,8 @@ async function checkExEnvSetting(loadjs) {
|
|
|
1771
1773
|
}
|
|
1772
1774
|
|
|
1773
1775
|
ppUtil$3.importExEnvSetting(conf$2._envSetting, fileName, loadjs);
|
|
1776
|
+
} catch (e) {
|
|
1777
|
+
return `导入本机环境配置失败\n${err$1.ERROR(e).message}`;
|
|
1774
1778
|
}
|
|
1775
1779
|
} // async function checkDatabase() {
|
|
1776
1780
|
// return dbCheck.check().then(info => info.updateMessage);
|