diff --git a/packageA/pages/myResume/components/uploadQrcode.vue b/packageA/pages/myResume/components/uploadQrcode.vue index 57abf0b..5d9727a 100644 --- a/packageA/pages/myResume/components/uploadQrcode.vue +++ b/packageA/pages/myResume/components/uploadQrcode.vue @@ -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' diff --git a/packageA/pages/myResume/myResume.vue b/packageA/pages/myResume/myResume.vue index 5818063..2b2a9d1 100644 --- a/packageA/pages/myResume/myResume.vue +++ b/packageA/pages/myResume/myResume.vue @@ -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('上传失败') diff --git a/pages/search/search.vue b/pages/search/search.vue index d28370f..65d2423 100644 --- a/pages/search/search.vue +++ b/pages/search/search.vue @@ -226,7 +226,7 @@ function getMajorDataSource() { console.log(majorDataSource.value) } }; - $api.createRequestWithCache('/app/common/jobTitle/treeselect', {}, 'GET', false, LoadCache).then(LoadCache); + $api.createRequestWithCache('/app/common/majorManagement/getMajorList', {}, 'GET', false, LoadCache).then(LoadCache); } // 设置搜索类型并触发搜索 diff --git a/static/upload.html b/static/upload.html index 97826c0..0ac8c40 100644 --- a/static/upload.html +++ b/static/upload.html @@ -615,8 +615,7 @@