mooho-base-admin-plus 0.1.35 → 0.1.36

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.1.35",
4
+ "version": "0.1.36",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.3.97",
7
7
  "license": "MIT",
@@ -25,7 +25,7 @@ function errorLog(err) {
25
25
  }
26
26
  });
27
27
  // 打印到控制台
28
- if (process.env.NODE_ENV === 'development') {
28
+ if (import.meta.env.MODE === 'development') {
29
29
  util.log.error('>>>>>> Error >>>>>>');
30
30
  console.log(err);
31
31
  }
@@ -16,7 +16,7 @@ export default {
16
16
  }
17
17
  });
18
18
  // 只在开发模式下打印 log
19
- if (process.env.NODE_ENV === 'development') {
19
+ if (import.meta.env.MODE === 'development') {
20
20
  util.log.capsule('Admin Plus', 'ErrorHandler', 'error');
21
21
  util.log.error('>>>>>> 错误信息 >>>>>>');
22
22
  console.log(info);
package/src/setting.js CHANGED
@@ -196,7 +196,11 @@ if (localSetting) {
196
196
  copyTo(localSetting, Setting);
197
197
  }
198
198
 
199
+ console.log('import.meta.env', import.meta.env);
200
+
199
201
  // API地址
200
202
  Setting.apiBaseURL = import.meta.env.MODE === 'development' ? Setting.apiBaseURL.dev : Setting.apiBaseURL.prd;
201
203
 
204
+ console.log('Setting.apiBaseURL', Setting.apiBaseURL, import.meta.env.MODE);
205
+
202
206
  export default Setting;