feat: 收口知识库分享链路
- 新增 shareKey 单参数 URL 分享页与失效页 - 新增知识库分享后端鉴权、审计与迁移脚本 - 在访问令牌中增加知识库分享授权入口
This commit is contained in:
@@ -28,6 +28,10 @@ interface NetworkConnectionLike {
|
||||
|
||||
const CHUNK_ERROR_RELOAD_KEY = '__easyflow_chunk_error_reload_path__';
|
||||
|
||||
function isKnowledgeShareRoute(path: string) {
|
||||
return path === '/share/knowledge' || path === '/share/knowledge/expired';
|
||||
}
|
||||
|
||||
function isSlowNetworkConnection() {
|
||||
if (typeof navigator === 'undefined') {
|
||||
return false;
|
||||
@@ -238,6 +242,10 @@ function setupAccessGuard(router: Router) {
|
||||
return buildForcePasswordRoute();
|
||||
}
|
||||
|
||||
if (isKnowledgeShareRoute(to.path)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// 是否已经生成过动态路由
|
||||
if (accessStore.isAccessChecked) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user