完成获取雨量

This commit is contained in:
wzy-warehouse
2026-05-18 21:15:36 +08:00
parent 133cf6d9a7
commit 0b2c4ac6ed
3 changed files with 12 additions and 1 deletions
+6 -1
View File
@@ -15,5 +15,10 @@ export const useStepStore = defineStore('step', () => {
*/
const currentStep: Ref<number> = ref(0);
return { stepList, currentStep };
const nextStep = () => {
currentStep.value =
currentStep.value >= stepList.value.length ? 0 : currentStep.value + 1;
};
return { stepList, currentStep, nextStep };
});