fix empty locale option when first created

When App component is created not using query parameter 'loc',
locale data is empty.
So add checking logic $route.query.loc
pull/155/head
DaehunGwak 4 years ago
parent 89d9c73569
commit 5468df2d22

@ -38,7 +38,9 @@ export default {
}, },
}, },
created() { created() {
if (this.$route.query.loc) {
this.locale = this.$route.query.loc; this.locale = this.$route.query.loc;
}
}, },
}; };
</script> </script>

Loading…
Cancel
Save