Commit f56811d3 authored by 朱国瑞's avatar 朱国瑞

处理语言问题

parent 93994442
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{{$t('strings.completeText')}} {{$t('strings.completeText')}}
</div> </div>
<div class="record" v-if="finalBabyStatus != 3 && finalBabyStatus != -1"> <div class="record" v-if="finalBabyStatus != 3 && finalBabyStatus != -1">
<div>{{$t('strings.homeTips')}}: {{time}}</div> <div>{{$t('strings.completeText2')}}: {{time}}s</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -67,11 +67,16 @@ export default { ...@@ -67,11 +67,16 @@ export default {
}, },
methods: {}, methods: {},
created() { created() {
this.$i18n.locale = "en";
let lang = localStorage.getItem("lang");
if (lang) {
this.$i18n.locale = lang;
}
this._isMobile = isMobile(); this._isMobile = isMobile();
let finalBabyStatus = this.$route.query.finalBabyStatus; let finalBabyStatus = this.$route.query.finalBabyStatus;
let lying = this.$route.query.lying; let lying = this.$route.query.lying;
let time = this.$route.query.time; let time = this.$route.query.total;
let total = this.$route.query.time; let total = this.$route.query.total;
this.finalBabyStatus = finalBabyStatus; this.finalBabyStatus = finalBabyStatus;
this.lying = lying; this.lying = lying;
this.time = time; this.time = time;
......
...@@ -620,6 +620,7 @@ export default { ...@@ -620,6 +620,7 @@ export default {
} else if (index === 2) { } else if (index === 2) {
lang = "es"; lang = "es";
} }
localStorage.setItem("lang", lang);
this.$i18n.locale = lang; this.$i18n.locale = lang;
}, },
async clickAuthCamera() { async clickAuthCamera() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment