1
0

feat(frontend): 优化打包模式识别

This commit is contained in:
2024-12-20 17:24:45 +08:00
parent 5a0c44ff35
commit fbb0ce5da3

View File

@@ -1,6 +1,6 @@
export const information = {
debug: true,
baseUrl: 'http://127.0.0.1:20080',
debug: import.meta.env.DEV,
baseUrl: import.meta.env.DEV ? 'http://127.0.0.1:20080' : '',
title: '可信供给中心',
}
@@ -16,8 +16,8 @@ export function useAmis(amisObject) {
struct,
{
data: {
debug: information.debug ?? false,
base: information.baseUrl ?? '',
debug: information.debug,
base: information.baseUrl,
},
},
{