askbot-dragon 1.7.18-beta → 1.7.19-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.
Files changed (34) hide show
  1. package/package.json +2 -1
  2. package/public/index.html +8 -10
  3. package/src/assets/js/AliyunlssUtil.js +52 -26
  4. package/src/assets/js/hammer.js +13 -2
  5. package/src/assets/less/converSationContainer/common.less +7 -0
  6. package/src/components/ActionAlertIframe.vue +24 -1
  7. package/src/components/AiGuide.vue +121 -154
  8. package/src/components/AnswerDocknowledge.vue +10 -8
  9. package/src/components/ConversationContainer.vue +952 -1794
  10. package/src/components/MyEditor.vue +6 -5
  11. package/src/components/actionSatisfaction.vue +3 -3
  12. package/src/components/answerRadio.vue +3 -3
  13. package/src/components/askVideo.vue +24 -1
  14. package/src/components/associationIntention.vue +11 -7
  15. package/src/components/formTemplate.vue +1592 -1658
  16. package/src/components/intelligentSummary.vue +8 -4
  17. package/src/components/message/TextMessage.vue +15 -11
  18. package/src/components/message/swiper/ticketSwiper.vue +1 -1
  19. package/src/components/newPdfPosition.vue +878 -0
  20. package/src/components/pdfPosition.vue +209 -35
  21. package/src/components/popup.vue +2 -2
  22. package/src/components/previewDoc.vue +6 -2
  23. package/src/components/previewPdf.vue +159 -134
  24. package/src/components/senderMessagePlatform.vue +4 -4
  25. package/src/components/tree.vue +114 -101
  26. package/src/components/utils/AliyunIssUtil.js +1 -0
  27. package/src/components/utils/ckeditor.js +1 -1
  28. package/src/components/welcomeKnowledgeFile.vue +6 -2
  29. package/src/components/welcomeLlmCard.vue +5 -1
  30. package/src/components/welcomeSuggest.vue +1 -1
  31. package/src/locales/cn.json +72 -0
  32. package/src/locales/en.json +73 -0
  33. package/src/locales/jp.json +73 -0
  34. package/src/main.js +18 -0
package/src/main.js CHANGED
@@ -16,6 +16,23 @@ Vue.use(vConsole);*/
16
16
  import $ from 'jquery'
17
17
  Vue.prototype._$ = $;
18
18
  Vue.use(Vant);
19
+ import VueI18n from 'vue-i18n'; //多语言
20
+
21
+ // 导入多语言的 JSON 文件
22
+ import enLocale from './locales/en.json';
23
+ import cnLocale from './locales/cn.json';
24
+
25
+ Vue.use(VueI18n);
26
+ console.log('languageCode',sessionStorage.getItem('languageCode'))
27
+ // 创建 VueI18n 实例,并设置默认语言和多语言内容
28
+ const i18n = new VueI18n({
29
+ locale: sessionStorage.getItem('languageCode') || 'cn', // 默认语言
30
+ messages: {
31
+ en: enLocale, // 英文
32
+ cn: cnLocale, // 中文
33
+ // 其他语言...
34
+ }
35
+ });
19
36
  Date.prototype.Format = function (fmt) { //author: meizz
20
37
  var o = {
21
38
  "M+": this.getMonth() + 1, //月份
@@ -53,5 +70,6 @@ Vue.prototype.requestUrl = requestUrl;
53
70
  Vue.prototype.utils = utils;
54
71
 
55
72
  new Vue({
73
+ i18n,
56
74
  render: h => h(App),
57
75
  }).$mount('#app')