feat : 对接专业搜索联想数据源接口,upload.html新增文件类型限制参数(带默认)

This commit is contained in:
2025-12-24 17:26:59 +08:00
parent 640231a223
commit 0029215bd9
4 changed files with 14 additions and 8 deletions

View File

@@ -203,7 +203,7 @@ function makeQrcode() {
} else {
pathPrefix = '';
}
const htmlPath = `${protocol}//${host}${pathPrefix}/static/upload.html?sessionId=${uuid.value}&uploadApi=${config.baseUrl}/app/kiosk/upload&fileCount=${props.leaveFileCount}`;
const htmlPath = `${protocol}//${host}${pathPrefix}/static/upload.html?sessionId=${uuid.value}&uploadApi=${config.baseUrl}/app/kiosk/upload&fileCount=${props.leaveFileCount}&accept='.pdf,.png,.jpg'`;
// const htmlPath = `${window.location.host}/static/upload.html?sessionId=${uuid.value}&uploadApi=${
// config.baseUrl + '/app/kiosk/upload'

View File

@@ -226,7 +226,7 @@ const handleFileSend = (rows)=>{
name: rows[0].originalName,
}
$api.createRequest('/app/oss/uploadToObs', { userId: userInfo.value.userId,url:file.url }, 'POST').then((res) => {
$api.createRequest('/app/oss/uploadToObs', { userId:userInfo.value.userId, filePath:file.url }, 'POST').then((res) => {
getUserResume();
$api.msg('上传成功');
playTextDirectly('上传失败')