feat : 对接专业搜索联想数据源接口,upload.html新增文件类型限制参数(带默认)
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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('上传失败')
|
||||
|
||||
Reference in New Issue
Block a user