Merge branch 'feature-analysis-RLR-renpy' of http://git.hivekion.com:3000/xiaoguangbin/AnalysisSystemForRadionuclide_vue into master-dev

This commit is contained in:
xiaoguangbin 2023-11-02 14:39:27 +08:00
commit 6678e1bf71

View File

@ -268,8 +268,6 @@ export default {
} }
this.handleResData(result) this.handleResData(result)
this.isLoading = false
if (this.nuclide && this.nuclideList.length) { if (this.nuclide && this.nuclideList.length) {
this.currNuclide = this.nuclide this.currNuclide = this.nuclide
this.getInfoByNuclide() this.getInfoByNuclide()
@ -279,11 +277,25 @@ export default {
} }
} catch (error) { } catch (error) {
console.error(error) console.error(error)
} finally {
this.isLoading = false
} }
}, },
// //
handleResData(result) { handleResData(result) {
if(!result) {
result = {
chart: [],
halfLife: null,
halfLifeErr: null,
lines: null,
list: [],
name: '',
table: [],
}
}
const { chart, halfLife, halfLifeErr, lines, list, name, table } = result const { chart, halfLife, halfLifeErr, lines, list, name, table } = result
this.info = { this.info = {