chore: directory migration - gateway→server, web→client/electron
This commit is contained in:
15
client/harmony/entry/src/main/ets/common/Config.ets
Normal file
15
client/harmony/entry/src/main/ets/common/Config.ets
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* AgentMail 鸿蒙客户端 — 全局配置
|
||||
* apiBase 可运行时修改(设置页/登录页),persist 到 preferences
|
||||
*/
|
||||
|
||||
/** 默认联调 Gateway(pi 提供,GUI 联调专用) */
|
||||
export const DEFAULT_API_BASE: string = 'http://192.168.2.60:8180/api/v1';
|
||||
|
||||
/** 模拟器 NAT 访问宿主机地址(备用,若 LAN 直连不通) */
|
||||
export const EMULATOR_HOST_BASE: string = 'http://10.0.2.2:8180/api/v1';
|
||||
|
||||
/** preferences 存储键 */
|
||||
export const PREF_KEY_API_BASE: string = 'api_base';
|
||||
export const PREF_KEY_TOKEN: string = 'user_token';
|
||||
export const PREF_KEY_USERNAME: string = 'username';
|
||||
Reference in New Issue
Block a user