fix(knowledge): use native file downloads in app

This commit is contained in:
2026-07-24 14:52:07 +08:00
parent bdc4ffad9f
commit 743d629dc8
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -29,6 +29,9 @@ test('问师傅支持显式新对话、版本回写和受控原文件或视频
assert.match(page, /releaseAuthenticatedFileUrl\(resource\.localUrl\)/);
assert.match(page, /resource\.type === 'VIDEO' && resource\.localUrl/);
assert.doesNotMatch(page, /link\.href = localUrl/);
assert.match(page, /!isNativeAppRuntime\(\) && typeof document !== 'undefined'/);
assert.match(page, /link\.download = resource\.title \|\| '资料文件'/);
assert.doesNotMatch(page, /link\.target = '_blank'/);
assert.match(page, /link\.rel = 'noreferrer'/);
assert.match(page, /点击下载原文件/);
assert.match(page, /msg\.result\.rewrittenQuery !== msg\.result\.queryText/);