完善后端联调链路与模拟器多通道支持
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
import { loadBackendAuthTokens, loadBackendBaseUrl } from './utils/backendAuth'
|
||||
|
||||
// app.ts
|
||||
App<IAppOption>({
|
||||
globalData: {
|
||||
telemetryPlayerProfile: null,
|
||||
backendBaseUrl: null,
|
||||
backendAuthTokens: null,
|
||||
},
|
||||
onLaunch() {
|
||||
this.globalData.backendBaseUrl = loadBackendBaseUrl()
|
||||
this.globalData.backendAuthTokens = loadBackendAuthTokens()
|
||||
|
||||
// 展示本地存储能力
|
||||
const logs = wx.getStorageSync('logs') || []
|
||||
logs.unshift(Date.now())
|
||||
|
||||
Reference in New Issue
Block a user