|
|
@@ -10,8 +10,6 @@ import type { Flow } from '@/request/model';
|
|
|
import { useVisitor } from '@/stores';
|
|
|
|
|
|
import NavHomeSelect from '@/assets/images/nav-home.select.png?url';
|
|
|
-import HandLeft from '@/assets/images/pulse-hand-left.png?url';
|
|
|
-import HandRight from '@/assets/images/pulse-hand-right.png?url';
|
|
|
|
|
|
const router = useRouter();
|
|
|
const Visitor = useVisitor();
|
|
|
@@ -89,7 +87,10 @@ let timer: ReturnType<typeof setInterval>;
|
|
|
const countdown = ref(5);
|
|
|
|
|
|
function start(value?: number) {
|
|
|
- if (!done.value) return;
|
|
|
+ if (!done.value) {
|
|
|
+ if (next.value?.route === '/pulse/result') replace(next.value.route);
|
|
|
+ return;
|
|
|
+ }
|
|
|
countdown.value = value ?? done.value.countdown ?? 3;
|
|
|
timer = setInterval(() => {
|
|
|
const _countdown = countdown.value - 1;
|