move to nuxt-i18n, switch language,address #171

This commit is contained in:
lesion
2022-10-12 12:45:09 +02:00
parent 33084237e9
commit 2cb4359ffd
13 changed files with 59 additions and 48 deletions

View File

@@ -41,7 +41,11 @@ export default {
},
methods: {
updatePage (page) {
this.$emit('monthchange', page)
if (page.month !== this.page.month || page.year !== this.page.year) {
this.$emit('monthchange', page)
this.page.month = page.month
this.page.year = page.year
}
},
click (day) {
this.$emit('dayclick', day)