cloud-web-corejs 1.0.166 → 1.0.167

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.166",
4
+ "version": "1.0.167",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -100,8 +100,8 @@ export default {
100
100
  '/user/form/view/list.vue',
101
101
  '/user/form/view/edit.vue'
102
102
  ]
103
- this.initUserInfo(() => {
104
- this.initI18n();
103
+ this.initUserInfo(async () => {
104
+ await this.initI18n();
105
105
  if (urlArr.includes(url)) {
106
106
  this.wfContent = require('@base/views' + url).default;
107
107
  } else if (url.startsWith(t)) {
@@ -123,11 +123,11 @@ export default {
123
123
  let i18nLang = this.$route.query.i18nLang || "zh";
124
124
  return i18nLang;
125
125
  },
126
- async initI18n() {
126
+ initI18n() {
127
127
  let lang = this.getI18nLang();
128
128
  this.$i18n.locale = lang // 设置给本地的i18n插件
129
129
  localStorage.setItem("i18n-lang", lang);
130
- await indexUtil.initI18nMessage("business", lang, true);
130
+ return indexUtil.initI18nMessage("business", lang, true);
131
131
  },
132
132
  login() {
133
133
  let token = this.$route.query.access_token;