feat(frontend): 优化打包模式识别
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user