This commit is contained in:
2026-08-25 10:39:50 +08:00
parent f2b9d48268
commit 3d91aa1667
12 changed files with 162 additions and 73 deletions
+2
View File
@@ -1,5 +1,6 @@
import { reactive } from 'vue'
import { OVERSEAS_API_ROOT } from '../config/runtime.js'
import { resetReceivingSession } from './receiving.js'
const SESSION_KEY = 'overseas-pda-auth-session'
export const PDA_ROLE = 'WAREHOUSE_PICKER'
@@ -158,6 +159,7 @@ export function signOut() {
session.tenantId = ''
session.apiBase = OVERSEAS_API_ROOT
if (typeof uni !== 'undefined' && typeof uni.removeStorageSync === 'function') uni.removeStorageSync(SESSION_KEY)
resetReceivingSession()
}
export function requireSession() {