feat(web): enhance knowledge base sharing with stop share feedback

- Fix file download URL to use absolute API path instead of apiPrefix variable
- Add stopShareSuccess i18n message for English locale
- Add stopShareSuccess i18n message for Chinese locale
- Update ShareModal to display different success messages based on share toggle state
- Show "Sharing is off" message when disabling knowledge base sharing
- Improve user feedback when toggling share status on/off
This commit is contained in:
yujiangping
2026-03-03 14:47:24 +08:00
parent 7044f705e7
commit ee4027c561
4 changed files with 10 additions and 3 deletions

View File

@@ -154,7 +154,7 @@ export const uploadFile = async (data: FormData, options?: UploadFileOptions) =>
// 下载文件
export const downloadFile = async (fileId: string, fileName?: string) => {
const token = cookieUtils.get('authToken');
const url = `${apiPrefix}/files/${fileId}`;
const url = `/api/files/${fileId}`;
try {
const response = await fetch(url, {