统一外部 access_token 存储与轻应用 URL 拼接,修复嵌入会话鉴权隔离。
将 access_token 纳入 scoped storage 迁移,yUserId 登录优先并独立持久化 token;轻应用/按钮管理默认改用 access_token 参数名,支持 hash 路由占位符替换与自动追加。
This commit is contained in:
1 parent
8c6d08d6bf
commit
6378cd33bd
10 files changed
+210
-39
No files matched your search
@@ -28,6 +28,7 @@ import {
|
||||
platformTypeChange,
|
||||
} from './GeneralQA.mock';
|
||||
import { requestCrudService } from '@/service/request-axios-service';
|
||||
import { authStorageGet } from '@/core/auth/scoped-storage';
|
||||
|
||||
/**
|
||||
* 通用问答组件
|
||||
@@ -138,7 +139,7 @@ const GeneralQA: React.FC<{
|
||||
const mockSingleRoundStoppedRef = useRef(false);
|
||||
const mockMultiRoundStoppedRef = useRef(false);
|
||||
const chatListRef = useRef<HTMLDivElement | null>(null);
|
||||
const userId = useRef(localStorage.getItem('userId') || '387'); // 用户id
|
||||
const userId = useRef(authStorageGet('userId') || '387'); // 用户id
|
||||
const qaType = useRef('GENERAL'); // 问答类型
|
||||
const chatDataId = useRef(); // 聊天窗口id
|
||||
const compareChatId = useRef(); // 对比对话记录id
|
||||
|
||||
Reference in new issue
Block a user