chore: merge branch missile-xuan:master

This commit is contained in:
pipipi-pikachu 2021-06-25 21:23:49 +08:00
commit 8628ba1476
2 changed files with 6 additions and 3 deletions

View File

@ -169,6 +169,10 @@ export default defineComponent({
} }
onUnmounted(closeAutoPlay) onUnmounted(closeAutoPlay)
const throttleMassage = throttle(function(msg) {
message.success(msg)
}, 3000, { leading: true, trailing: false })
// / // /
// //
// //
@ -182,7 +186,7 @@ export default defineComponent({
animationIndex.value = lastIndex animationIndex.value = lastIndex
} }
else { else {
message.success('已经是第一页了') throttleMassage('已经是第一页了')
} }
} }
const execNext = () => { const execNext = () => {
@ -194,7 +198,7 @@ export default defineComponent({
animationIndex.value = 0 animationIndex.value = 0
} }
else { else {
message.success('已经是最后一页了') throttleMassage('已经是最后一页了')
closeAutoPlay() closeAutoPlay()
} }
} }

View File

@ -170,7 +170,6 @@ table {
min-height: 32px; min-height: 32px;
padding: 5px; padding: 5px;
line-height: 1.5; line-height: 1.5;
user-select: none;
} }
} }
</style> </style>