Skip to content

Commit

Permalink
fix line errors
Browse files Browse the repository at this point in the history
  • Loading branch information
halsk committed Jan 2, 2024
1 parent 1939d64 commit 9be4384
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 7 additions & 2 deletions components/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@ div

<script lang="js">
export default {
props: ['isOpen'],
props: {
isOpen: {
type: Boolean,
default: false
}
},
data () {
return {
mapConfig: this.$nuxt.$route.params.map ? require('~/assets/config/' + (this.$nuxt.$route.params.map)) : ''
}
},
methods: {
handleClick () {
this.isOpen = false
this.$emit('update:isOpen', false)
this.$emit('closeModal')
}
}
Expand Down
7 changes: 6 additions & 1 deletion components/PrintableMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@ import { getNowYMD } from "~/lib/displayHelper";
const crc16 = require("js-crc").crc16;
let helper;
export default {
props: ["mapConfig"],
props: {
mapConfig: {
type: Object,
required: true,
},
},
data() {
let locale = "en";
if (this.$i18n.locale === "ja") {
Expand Down

0 comments on commit 9be4384

Please sign in to comment.