Browse Source

移除会话自动登录服务中的操作员 ID 参数,优化 URL 处理逻辑。

wuyi 2 tháng trước cách đây
mục cha
commit
73363d3020
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/lib/api/sessionAutoLoginService.ts

+ 1 - 0
src/lib/api/sessionAutoLoginService.ts

@@ -75,6 +75,7 @@ export class SessionAutoLoginService {
     try {
       const url = new URL(window.location.href);
       url.searchParams.delete('data');
+      url.searchParams.delete('operatorId');
 
       // 使用replaceState避免在浏览器历史中留下记录
       window.history.replaceState({}, '', url.toString());