แก้ เเสดงNaN

This commit is contained in:
setthawutttty 2024-12-26 12:51:46 +07:00
parent 8876d481a9
commit 35e09e1b0b
2 changed files with 2 additions and 2 deletions

View file

@ -160,7 +160,7 @@ function getDevelop() {
(sum: number, e: any) => sum + e.summary,
0
);
store.devScoreVal = total / rows.value.length;
store.devScoreVal = data.length !== 0 ? total / rows.value.length : 0;
});
}

View file

@ -1,7 +1,7 @@
import { defineStore } from "pinia";
import { ref, reactive } from "vue";
import type { DataOption } from "@/modules/14_KPI/interface/index/Main";
import type { FormQuery } from "@/modules/14_KPI/interface/request/Index";
import type { FormQuery } from "@/modules/14_KPI/interface/request/index";
export const useKpiDataStore = defineStore("KPIDataAdmin", () => {
const tabMainevaluator = ref<string>("1");