askbot-dragon 1.7.48-beta → 1.7.51-beta

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,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.7.48-beta",
3
+ "version": "1.7.51-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -65,6 +65,7 @@ export default {
65
65
  },
66
66
  methods: {},
67
67
  mounted() {
68
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
68
69
  this.tampId = 'iframeId++' + new Date().getTime();
69
70
  let tampUrl = this.actionAlertIframe.template;
70
71
  function GetRequest() {
@@ -305,6 +305,7 @@ export default {
305
305
  // });
306
306
  },
307
307
  mounted () {
308
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
308
309
  this.docSource = {
309
310
  LOCAL_FILE: this.$t('dragonCommon.personalknowledge'),
310
311
  CREATED_BY_ONESELF: this.$t('dragonCommon.personalknowledge'),
@@ -112,6 +112,7 @@ export default {
112
112
  },
113
113
  props: ["msg"],
114
114
  mounted() {
115
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
115
116
  console.log(this.msg, "msg");
116
117
  // 关键词推荐 前端分页
117
118
  this.msg.content.questionList = this.msg.content.questionList.slice(0, 20);
@@ -36,6 +36,8 @@ export default {
36
36
  },
37
37
  props: ['msg'],
38
38
  mounted() {
39
+ console.log("askbot-dragon: systemLanguage", sessionStorage.getItem("systemLanguage"));
40
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
39
41
  console.log(this.msg, 'msg');
40
42
  // 关键词推荐 前端分页
41
43
  if ((this.msg.id == "recdNodeId" || this.msg.content.groupVisible) && this.msg.content.options.length > this.pageSize) {
@@ -105,7 +105,10 @@ export default {
105
105
  : "";
106
106
  return dataDetails;
107
107
  },
108
- }
108
+ },
109
+ mounted() {
110
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
111
+ },
109
112
  };
110
113
  </script>
111
114
 
@@ -1071,6 +1071,7 @@ export default {
1071
1071
  // this.ckeditor.editorConfig.toolbar = []
1072
1072
 
1073
1073
  // }
1074
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
1074
1075
  if (this.mainId == '90df4764122240de939331d372546c28') {
1075
1076
  this.isBaiLi = true;
1076
1077
  }
@@ -131,6 +131,7 @@ export default {
131
131
  },
132
132
  },
133
133
  mounted() {
134
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
134
135
  this.getKnowledgeSummary();
135
136
  }
136
137
  };
@@ -40,7 +40,10 @@ export default {
40
40
  onload() {
41
41
  this.$emit('onload')
42
42
  }
43
- }
43
+ },
44
+ mounted() {
45
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
46
+ },
44
47
  }
45
48
  </script>
46
49
 
@@ -1068,6 +1068,7 @@ export default {
1068
1068
  }
1069
1069
  },
1070
1070
  mounted () {
1071
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
1071
1072
  this.scaleList = [
1072
1073
  {
1073
1074
  label: this.$t('dragonCommon.scaleAuto'),
@@ -164,6 +164,7 @@ export default {
164
164
  },
165
165
  },
166
166
  mounted() {
167
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
167
168
  console.debug('options',this.options)
168
169
 
169
170
  }
@@ -187,6 +187,7 @@ export default {
187
187
  }
188
188
  },
189
189
  mounted() {
190
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
190
191
  setTimeout(() =>{
191
192
  let previewIframe = document.getElementsByClassName('preview_iframe')
192
193
  Array.from(previewIframe).forEach(item =>{
@@ -141,6 +141,7 @@ export default {
141
141
  }
142
142
  },
143
143
  mounted () {
144
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
144
145
  window.addEventListener('message', this.handleIframeMessage, false);
145
146
  this.isPcFun();
146
147
  },
@@ -56,7 +56,10 @@ export default {
56
56
  }
57
57
  }
58
58
  }
59
- }
59
+ },
60
+ mounted() {
61
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
62
+ },
60
63
  }
61
64
  </script>
62
65
 
@@ -45,7 +45,10 @@ export default {
45
45
  }
46
46
  }
47
47
  }
48
- }
48
+ },
49
+ mounted() {
50
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
51
+ },
49
52
  }
50
53
  </script>
51
54
 
@@ -220,7 +220,10 @@ export default {
220
220
  close() {
221
221
  this.$emit('closePreviewDialog')
222
222
  },
223
- }
223
+ },
224
+ mounted() {
225
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
226
+ },
224
227
  };
225
228
  </script>
226
229