修改打包模式页面
This commit is contained in:
parent
692d0620a5
commit
86b93002f7
@ -157,6 +157,12 @@ export async function ensureEntry(store, forceValidate = false) {
|
|||||||
|
|
||||||
export async function handleTokenExpired(store) {
|
export async function handleTokenExpired(store) {
|
||||||
clearSession(store)
|
clearSession(store)
|
||||||
|
// 工作台会话 token 失效:一并清除工作台登录态,避免登录页 onShow 检测到残留 workbenchToken 后自动重进打包模式造成死循环
|
||||||
|
try {
|
||||||
|
uni.removeStorageSync('workbenchToken')
|
||||||
|
uni.removeStorageSync('workbenchInfo')
|
||||||
|
uni.removeStorageSync('workbenchOperator')
|
||||||
|
} catch (e) {}
|
||||||
const currentRoute = getCurrentRoute()
|
const currentRoute = getCurrentRoute()
|
||||||
if (!isLoginRoute(currentRoute)) {
|
if (!isLoginRoute(currentRoute)) {
|
||||||
await goLogin()
|
await goLogin()
|
||||||
|
|||||||
@ -114,6 +114,9 @@ export default class BroadcastManager {
|
|||||||
const dataKey = this.config.dataKey || 'value';
|
const dataKey = this.config.dataKey || 'value';
|
||||||
const data = intent.getStringExtra(dataKey);
|
const data = intent.getStringExtra(dataKey);
|
||||||
|
|
||||||
|
// 诊断日志:每次收到广播都打印(含 data 为空的情况),便于排查“后续扫描无反应”
|
||||||
|
console.log('[BroadcastManager] 收到广播 action=', intent.getAction(), ' dataKey=', dataKey, ' data=', data);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user