Skip to content

Commit

Permalink
perf: 调整聚焦提示入场时机
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyibai committed Jul 7, 2024
1 parent d435f96 commit f6519ef
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/views/Yibao/components/PartList/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { storeToRefs } from "pinia";
import { ref, watchEffect } from "vue";
import { onMounted, ref, watchEffect } from "vue";
import ColorsTextures from "./components/ColorsTextures/index.vue";
Expand Down Expand Up @@ -74,10 +74,7 @@ watchEffect(() => {
index.value = part_style_type.value === "COLOR" ? 0 : 1;
});
setTimeout(() => {}, 3000);
//延迟五秒是因为乂宝入场动画
setTimeout(() => {
onMounted(() => {
$tip({
align: "right-bottom",
color: false,
Expand All @@ -91,7 +88,7 @@ setTimeout(() => {
setPartStyle("IMG");
},
});
}, 5000);
});
</script>

<template>
Expand Down

0 comments on commit f6519ef

Please sign in to comment.