|
@@ -80,7 +80,7 @@ onMounted(() => {
|
|
|
watch(() => props.oneStr, (currentStr, prevStr) => {
|
|
watch(() => props.oneStr, (currentStr, prevStr) => {
|
|
|
anim.value = false;
|
|
anim.value = false;
|
|
|
|
|
|
|
|
- if (currentStr === '' || prevStr === '') {
|
|
|
|
|
|
|
+ if (!currentStr || !prevStr) {
|
|
|
currentScrollTop.value = true;
|
|
currentScrollTop.value = true;
|
|
|
upText.value = currentStr;
|
|
upText.value = currentStr;
|
|
|
downText.value = currentStr;
|
|
downText.value = currentStr;
|