feat: refresh h5 debug workflow and ui design

This commit is contained in:
nepiedg
2026-03-31 21:29:54 +08:00
parent a55614c04f
commit e92f1bdfae
9 changed files with 1303 additions and 1329 deletions
+3 -2
View File
@@ -2,13 +2,14 @@ import { request } from './request'
import { MINI_PROGRAM_ID } from '@/config'
import { storage, SESSION_KEY, USER_KEY } from '@/utils/storage'
const H5_DEBUG_SESSION_KEY = 'o3dUk5QYaPdfMN9hBxeuouE0q63E'
const H5_DEBUG_SESSION_KEY = 'FxLFPHHBw49loODmRSvqdg=='
export function applyH5DebugSession() {
let applied = false
// #ifdef H5
if (process.env.NODE_ENV === 'development' && !storage.get(SESSION_KEY)) {
if (process.env.NODE_ENV === 'development' && storage.get(SESSION_KEY) !== H5_DEBUG_SESSION_KEY) {
storage.set(SESSION_KEY, H5_DEBUG_SESSION_KEY)
storage.remove(USER_KEY)
applied = true
}
// #endif