Update code: fixed bugs and added new features

This commit is contained in:
probdg
2024-02-03 16:32:05 +07:00
parent ecc64c7b61
commit 2b40b2016b
14 changed files with 275 additions and 33 deletions

View File

@@ -2,20 +2,20 @@ import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useTotalReport = defineStore('totalReport', () => {
const totalMin = ref()
const totalMax = ref()
const setDataMin = (value: Number) => {
totalMax.value = value
}
const getDataMin = () => {
return totalMax.value
}
const setDataMax = (value: Number) => {
const totalMin = ref(1)
const totalMax = ref(1)
const setDataMin = (value: any) => {
totalMin.value = value
}
const getDataMax = () => {
const getDataMin = () => {
return totalMin.value
}
const setDataMax = (value: any) => {
totalMax.value = value
}
const getDataMax = () => {
return totalMax.value
}
return {
setDataMin,
getDataMin,