Merge pull request 'fix:价值透析数据修改;' (#370) from yangws into main

Reviewed-on: #370
This commit is contained in:
yangws 2024-10-25 16:41:15 +08:00
commit 7c9b2755f2
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ const getKonwledge = () => {
konwledge.value.forEach(item => { konwledge.value.forEach(item => {
let sunRate = 0 let sunRate = 0
let num = 0 let num = 0
if(getScoreRate.length === 0) return
getScoreRate.forEach(item2 => { getScoreRate.forEach(item2 => {
if(item.id === item2.id){ if(item.id === item2.id){
sunRate += extractedNumber(item2.rate) sunRate += extractedNumber(item2.rate)