diff --git a/main.js b/main.js index 1abc647..ad9c57c 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,6 @@ import App from './App' import Vue from 'vue' +import i18n from './locale/index.js' Vue.config.productionTip = false App.mpType = 'app' @@ -28,6 +29,7 @@ Vue.directive('enterNumber', { import store from '@/vuex/store.js' const app = new Vue({ + i18n, ...App, store }) diff --git a/manifest.json b/manifest.json index 86e4a2a..78d0d7c 100644 --- a/manifest.json +++ b/manifest.json @@ -109,5 +109,6 @@ "router" : { "base" : "./" } - } + }, + "locale" : "auto" } diff --git a/pages/login/login.vue b/pages/login/login.vue index bf7ddd0..4181477 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -1,23 +1,23 @@