cloud-web-corejs 1.0.54-dev.441 → 1.0.54-dev.442

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.441",
4
+ "version": "1.0.54-dev.442",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -14,6 +14,9 @@ function getUrlParams(url) {
14
14
 
15
15
  export default {
16
16
  name: 'Login',
17
+ props:{
18
+ lang: String
19
+ },
17
20
  components: {},
18
21
  data() {
19
22
  return {
@@ -99,10 +102,10 @@ export default {
99
102
  },
100
103
  methods: {
101
104
  initLang(){
102
- if(this.$route.query.lang){
103
- debugger
104
- this.$i18n.locale = this.$route.query.lang;
105
- localStorage.setItem("i18n-lang",this.$route.query.lang);
105
+ let flag = this.$route.query.lang || this.lang;
106
+ if(flag){
107
+ this.$i18n.locale = flag;
108
+ localStorage.setItem("i18n-lang", flag);
106
109
  }
107
110
  },
108
111
  init() {