yinxia.yang 1 lună în urmă
părinte
comite
afe594f206
1 a modificat fișierele cu 1 adăugiri și 5 ștergeri
  1. 1 5
      src/App.vue

+ 1 - 5
src/App.vue

@@ -8,12 +8,8 @@
 	const warehouse = useWarehouse()
 	const links = [{ path: '/dashboard', name: '工作台', icon: House }, { path: '/master', name: '基础资料管理', icon: Collection }, { path: '/sku', name: '商品 / SKU 管理', icon: Box }, { path: '/inbound', name: '入库管理', icon: Download }, { path: '/outbound', name: '出库管理', icon: Upload }, { path: '/ledger', name: '库存台账', icon: Notebook }]
 	function logout() {
-		// 设置标记:回到登录页后不自动跳授权中心
-		sessionStorage.setItem('oauth_no_auto_redirect', '1')
-		// 先清空其他本地缓存(保留 no_auto_redirect 标记)
-		const paused = sessionStorage.getItem('oauth_no_auto_redirect')
+		// 先清空本地所有缓存
 		sessionStorage.clear()
-		if (paused) sessionStorage.setItem('oauth_no_auto_redirect', paused)
 		clearAuthInfo()
 		clearOAuthTemp()
 		// 跳转到 OIDC 服务端登出,销毁 SSO 会话,登出后回到 index.html