ai-error-assistant-pro 0.0.14 → 0.0.16

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.
@@ -263,6 +263,7 @@ export default {
263
263
  return;
264
264
  }
265
265
  currentList.cacheMessage += content;
266
+ currentList.cacheMessage = currentList.cacheMessage.replace('```json{', '```json\n{');
266
267
  currentList.message = marked.parse(currentList.cacheMessage);
267
268
  currentList.msgId = msgId;
268
269
  currentList.parentMsgId = parentMsgId;
@@ -97,17 +97,18 @@ export default {
97
97
  avatarUrl: '',
98
98
  }
99
99
  },
100
- async mounted() {
100
+ mounted() {
101
101
  if (!Cookies.get("token")) {
102
102
  return this.$message.warning('未获取到登录信息,请重新登录');
103
103
  }
104
- getUserInfo(Cookies.get("token"), this.businessSource);
105
- const wordRes = await queryCallWord(this.resId);
106
- if (!wordRes) return;
107
- const { showMoreQA, isShowFile } = wordRes;
108
- this.showMoreQA = showMoreQA;
109
- this.showFile = !!isShowFile;
110
- this.avatarUrl = cache.session.getJSON('USER_AVATAR_URL');
104
+ getUserInfo(Cookies.get("token"), this.businessSource, async () => {
105
+ const wordRes = await queryCallWord(this.resId);
106
+ if (!wordRes) return;
107
+ const { showMoreQA, isShowFile } = wordRes;
108
+ this.showMoreQA = showMoreQA;
109
+ this.showFile = !!isShowFile;
110
+ this.avatarUrl = cache.session.getJSON('USER_AVATAR_URL');
111
+ });
111
112
  },
112
113
  methods: {
113
114
  closeMessage() {
@@ -86,7 +86,7 @@ export const cacheMessageList = [
86
86
  // });
87
87
  // cache.session.setJSON('SRKJ_TOKEN_CACHE', userRes);
88
88
  // }
89
- export const getUserInfo = async (token, businessSource) => {
89
+ export const getUserInfo = async (token, businessSource, fn) => {
90
90
  await ssoAuth(token, businessSource).then(async (ssoRes) => {
91
91
  if (ssoRes?.avatarUrl){
92
92
  cache.session.setJSON('USER_AVATAR_URL', ssoRes.avatarUrl);
@@ -95,4 +95,5 @@ export const getUserInfo = async (token, businessSource) => {
95
95
  }
96
96
  });
97
97
  cache.session.setJSON('SRKJ_TOKEN_CACHE', token);
98
+ if (fn) fn();
98
99
  }
@@ -6546,7 +6546,7 @@ if (typeof window !== 'undefined') {
6546
6546
  // Indicate to webpack that this file can be concatenated
6547
6547
  /* harmony default export */ var setPublicPath = (null);
6548
6548
 
6549
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=template&id=6861902d&scoped=true
6549
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=template&id=039c1a7e&scoped=true
6550
6550
  var render = function render() {
6551
6551
  var _vm = this,
6552
6552
  _c = _vm._self._c;
@@ -6646,10 +6646,10 @@ var staticRenderFns = [function () {
6646
6646
  }, [_vm._v("智能解析")])]);
6647
6647
  }];
6648
6648
 
6649
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=6861902d&scoped=true
6649
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=039c1a7e&scoped=true
6650
6650
 
6651
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=template&id=25a39a99&scoped=true
6652
- var chatvue_type_template_id_25a39a99_scoped_true_render = function render() {
6651
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=template&id=3c41f2d0&scoped=true
6652
+ var chatvue_type_template_id_3c41f2d0_scoped_true_render = function render() {
6653
6653
  var _vm = this,
6654
6654
  _c = _vm._self._c;
6655
6655
  return _c('div', {
@@ -6769,7 +6769,7 @@ var chatvue_type_template_id_25a39a99_scoped_true_render = function render() {
6769
6769
  }) : _vm._e()], 1)]);
6770
6770
  })], 2);
6771
6771
  };
6772
- var chatvue_type_template_id_25a39a99_scoped_true_staticRenderFns = [];
6772
+ var chatvue_type_template_id_3c41f2d0_scoped_true_staticRenderFns = [];
6773
6773
 
6774
6774
  ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/bind.js
6775
6775
 
@@ -11090,7 +11090,7 @@ const cacheMessageList = [{
11090
11090
  // });
11091
11091
  // cache.session.setJSON('SRKJ_TOKEN_CACHE', userRes);
11092
11092
  // }
11093
- const getUserInfo = async (token, businessSource) => {
11093
+ const getUserInfo = async (token, businessSource, fn) => {
11094
11094
  await ssoAuth(token, businessSource).then(async ssoRes => {
11095
11095
  if (ssoRes !== null && ssoRes !== void 0 && ssoRes.avatarUrl) {
11096
11096
  cache.session.setJSON('USER_AVATAR_URL', ssoRes.avatarUrl);
@@ -11099,6 +11099,7 @@ const getUserInfo = async (token, businessSource) => {
11099
11099
  }
11100
11100
  });
11101
11101
  cache.session.setJSON('SRKJ_TOKEN_CACHE', token);
11102
+ if (fn) fn();
11102
11103
  };
11103
11104
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat-tools.vue?vue&type=template&id=a40a67cc&scoped=true
11104
11105
  var chat_toolsvue_type_template_id_a40a67cc_scoped_true_render = function render() {
@@ -14483,6 +14484,7 @@ const signal = controller.signal;
14483
14484
  return;
14484
14485
  }
14485
14486
  currentList.cacheMessage += content;
14487
+ currentList.cacheMessage = currentList.cacheMessage.replace('```json{', '```json\n{');
14486
14488
  currentList.message = marked.parse(currentList.cacheMessage);
14487
14489
  currentList.msgId = msgId;
14488
14490
  currentList.parentMsgId = parentMsgId;
@@ -14582,10 +14584,10 @@ const signal = controller.signal;
14582
14584
  });
14583
14585
  ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=script&lang=js
14584
14586
  /* harmony default export */ var src_chatvue_type_script_lang_js = (chatvue_type_script_lang_js);
14585
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=style&index=0&id=25a39a99&prod&lang=scss&scoped=true
14587
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=style&index=0&id=3c41f2d0&prod&lang=scss&scoped=true
14586
14588
  // extracted by mini-css-extract-plugin
14587
14589
 
14588
- ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=25a39a99&prod&lang=scss&scoped=true
14590
+ ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=3c41f2d0&prod&lang=scss&scoped=true
14589
14591
 
14590
14592
  ;// CONCATENATED MODULE: ./components/demo/src/chat.vue
14591
14593
 
@@ -14598,11 +14600,11 @@ const signal = controller.signal;
14598
14600
 
14599
14601
  var chat_component = normalizeComponent(
14600
14602
  src_chatvue_type_script_lang_js,
14601
- chatvue_type_template_id_25a39a99_scoped_true_render,
14602
- chatvue_type_template_id_25a39a99_scoped_true_staticRenderFns,
14603
+ chatvue_type_template_id_3c41f2d0_scoped_true_render,
14604
+ chatvue_type_template_id_3c41f2d0_scoped_true_staticRenderFns,
14603
14605
  false,
14604
14606
  null,
14605
- "25a39a99",
14607
+ "3c41f2d0",
14606
14608
  null
14607
14609
 
14608
14610
  )
@@ -14799,20 +14801,21 @@ var api = init(defaultConverter, { path: '/' });
14799
14801
  avatarUrl: ''
14800
14802
  };
14801
14803
  },
14802
- async mounted() {
14804
+ mounted() {
14803
14805
  if (!api.get("token")) {
14804
14806
  return this.$message.warning('未获取到登录信息,请重新登录');
14805
14807
  }
14806
- getUserInfo(api.get("token"), this.businessSource);
14807
- const wordRes = await queryCallWord(this.resId);
14808
- if (!wordRes) return;
14809
- const {
14810
- showMoreQA,
14811
- isShowFile
14812
- } = wordRes;
14813
- this.showMoreQA = showMoreQA;
14814
- this.showFile = !!isShowFile;
14815
- this.avatarUrl = cache.session.getJSON('USER_AVATAR_URL');
14808
+ getUserInfo(api.get("token"), this.businessSource, async () => {
14809
+ const wordRes = await queryCallWord(this.resId);
14810
+ if (!wordRes) return;
14811
+ const {
14812
+ showMoreQA,
14813
+ isShowFile
14814
+ } = wordRes;
14815
+ this.showMoreQA = showMoreQA;
14816
+ this.showFile = !!isShowFile;
14817
+ this.avatarUrl = cache.session.getJSON('USER_AVATAR_URL');
14818
+ });
14816
14819
  },
14817
14820
  methods: {
14818
14821
  closeMessage() {
@@ -14865,10 +14868,10 @@ var api = init(defaultConverter, { path: '/' });
14865
14868
  });
14866
14869
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
14867
14870
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
14868
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=0&id=6861902d&prod&lang=scss&scoped=true
14871
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=0&id=039c1a7e&prod&lang=scss&scoped=true
14869
14872
  // extracted by mini-css-extract-plugin
14870
14873
 
14871
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=6861902d&prod&lang=scss&scoped=true
14874
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=039c1a7e&prod&lang=scss&scoped=true
14872
14875
 
14873
14876
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue
14874
14877
 
@@ -14885,7 +14888,7 @@ var main_component = normalizeComponent(
14885
14888
  staticRenderFns,
14886
14889
  false,
14887
14890
  null,
14888
- "6861902d",
14891
+ "039c1a7e",
14889
14892
  null
14890
14893
 
14891
14894
  )