内部讲师: - 查看讲师,点击下载“认证资料”,报错

upload 判断
This commit is contained in:
gengxin
2025-02-13 15:38:23 +08:00
parent 3824a363be
commit 7a22dcb8e3
2 changed files with 18 additions and 15 deletions

View File

@@ -437,9 +437,15 @@ export default {
// }
// getSysTypeMap()
const handleup = () => {
window.open(
`${process.env.VUE_APP_BOE_API_URL}/upload${state.formParam.certification}`
);
let url = "";
if(state.formParam.certification != null && state.formParam.certification != undefined && state.formParam.certification != ''){
if(state.formParam.certification.startWith("/upload")){
url = `${process.env.VUE_APP_BOE_API_URL}${state.formParam.certification}`
}else{
url = `${process.env.VUE_APP_BOE_API_URL}/upload${state.formParam.certification}`
}
}
window.open(url);
}
return {
...toRefs(state),