mooho-base-admin-plus 0.1.35 → 0.1.38
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/mooho-base-admin-plus.min.js +10 -10
- package/package.json +1 -1
- package/src/libs/request/index.js +1 -1
- package/src/plugins/error/index.js +1 -1
- package/src/setting.js +4 -0
- package/test/main.js +2 -0
- package/vite.config.js +3 -3
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
// 只在开发模式下打印 log
|
|
19
|
-
if (
|
|
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;
|
package/test/main.js
CHANGED
package/vite.config.js
CHANGED
|
@@ -29,9 +29,9 @@ export default defineConfig({
|
|
|
29
29
|
entryFileNames: 'mooho-base-admin-plus.min.js',
|
|
30
30
|
chunkFileNames: '[name].js',
|
|
31
31
|
assetFileNames: '[name].[ext]',
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
namespaceToStringTag: true,
|
|
33
|
+
inlineDynamicImports: false,
|
|
34
|
+
manualChunks: undefined,
|
|
35
35
|
globals: { vue: 'Vue', 'view-ui-plus': 'viewUiPlus' }
|
|
36
36
|
}
|
|
37
37
|
]
|