完善联调标准化与诊断链路
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { clearBackendAuthTokens, saveBackendAuthTokens, saveBackendBaseUrl } from '../../utils/backendAuth'
|
||||
import { loginWechatMini } from '../../utils/backendApi'
|
||||
import { setGlobalMockDebugBridgeEnabled } from '../../utils/globalMockDebugBridge'
|
||||
|
||||
const DEFAULT_BACKEND_BASE_URL = 'https://api.gotomars.xyz'
|
||||
const DEFAULT_DEVICE_KEY = 'mini-dev-device-001'
|
||||
@@ -116,6 +117,7 @@ Page({
|
||||
|
||||
handleClearLoginState() {
|
||||
clearBackendAuthTokens()
|
||||
setGlobalMockDebugBridgeEnabled(false)
|
||||
const app = getApp<IAppOption>()
|
||||
if (app.globalData) {
|
||||
app.globalData.backendAuthTokens = null
|
||||
|
||||
Reference in New Issue
Block a user