提交 | 用户 | age | ||
c09e73 | 1 | |
S | 2 | interface extInfo { |
3 | HttpHost: string; | |
4 | WssHost: string; | |
5 | AppId: string; | |
6 | FromUserId: string; | |
7 | } | |
8 | ||
9 | const config: extInfo = wx.getExtConfigSync() as unknown as extInfo; | |
10 | // config: extInfo; | |
11 | // const config = { | |
12 | // httpBaseUrl: wx.getExtConfigSync().HttpHost, | |
13 | // wssBaseUrl: wx.getExtConfigSync().WssHost, | |
14 | // AppId: wx.getExtConfigSync().AppId, | |
15 | // } | |
16 | ||
17 | export { config } |