添加已发短信查询接口

This commit is contained in:
guanj
2025-11-12 14:35:16 +08:00
parent 80ed66a2b0
commit 6a1a7eb218
3 changed files with 46 additions and 14 deletions

View File

@@ -58,11 +58,13 @@ const emit = defineEmits(["timeChangeInfo"]);
interface Props {
nextFlag?: boolean;
theCurrentTime?: boolean;
setWatch?: boolean;
}
const props = withDefaults(defineProps<Props>(), {
nextFlag: false,
theCurrentTime: true,
setWatch: true,
});
const interval = ref(3);
@@ -573,8 +575,10 @@ function formatDate(date: Date): string {
}
watch(timeValue, async (newVal) => {
await store.dispatch("setTimeType", { type: interval, value: newVal });
await emit("timeChangeInfo");
if (props.setWatch) {
await store.dispatch("setTimeType", { type: interval, value: newVal });
await emit("timeChangeInfo");
}
});
defineExpose({