Update code: fixed bugs and added new features
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user