mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🐛 fix(calendar): 修正切换逻辑错误
This commit is contained in:
@@ -175,7 +175,7 @@ function showContent (contentId: number, name: string) {
|
||||
}
|
||||
|
||||
function getContents (day: number) {
|
||||
const oldValue = btnNow.value % 4;
|
||||
const oldValue = btnNow.value;
|
||||
btnNow.value = day;
|
||||
if (oldValue % 3 === day % 3 && oldValue !== 0 && day !== 0) {
|
||||
return;
|
||||
@@ -183,7 +183,6 @@ function getContents (day: number) {
|
||||
calendarNow.value = getCalendar(day);
|
||||
characterCards.value = calendarNow.value.characters;
|
||||
weaponCards.value = calendarNow.value.weapons;
|
||||
console.log(characterCards.value);
|
||||
}
|
||||
</script>
|
||||
<style lang="css" scoped>
|
||||
|
||||
Reference in New Issue
Block a user