feat(frontend): 优化打包模式识别
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
export const information = {
|
export const information = {
|
||||||
debug: true,
|
debug: import.meta.env.DEV,
|
||||||
baseUrl: 'http://127.0.0.1:20080',
|
baseUrl: import.meta.env.DEV ? 'http://127.0.0.1:20080' : '',
|
||||||
title: '可信供给中心',
|
title: '可信供给中心',
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -16,8 +16,8 @@ export function useAmis(amisObject) {
|
|||||||
struct,
|
struct,
|
||||||
{
|
{
|
||||||
data: {
|
data: {
|
||||||
debug: information.debug ?? false,
|
debug: information.debug,
|
||||||
base: information.baseUrl ?? '',
|
base: information.baseUrl,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user