fix:增加交互分析 help弹窗打开pdf功能

This commit is contained in:
xiaoguangbin 2024-12-09 10:58:10 +08:00
parent 851603bb9f
commit 791271c747

View File

@ -1109,6 +1109,22 @@ export default {
//
handleHelp() {
let docPath = null
let apiBaseUrl = window._CONFIG['onlinePreviewDomainURL'] || "/jeecg-boot";
if(this.isGamma) {
docPath = `/armd-help/Gamma.pdf`;
} else if (this.isBeta) {
docPath = `/armd-help/Self-Beta-Gamma.pdf`;
} else if(this.isBetaGamma) {
docPath = `/armd-help/Beta-Gamma.pdf`;
}
if(!docPath) {
this.$message.warning('Please load an spectrum first!')
return ;
}
window.open(apiBaseUrl + docPath, '_blank');
console.log('%c [ handleHelp ]-221', 'font-size:13px; background:pink; color:#bf2c9f;')
},