feat: refresh h5 debug workflow and ui design
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user