ai-assistant-pro 0.0.1 → 0.0.2

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.
@@ -1,7 +1,9 @@
1
1
  import request from '../utils/request'
2
2
  import { fetchEventSource } from '@microsoft/fetch-event-source';
3
- const baseURL = sessionStorage.getItem('AI_BASE_URL_FOR_TEST') || 'https://zjyw.icve.com.cn/ai-api';
4
- const prefix = sessionStorage.getItem('AI_PRE_FIX_FOR_TEST') || '/heatp';
3
+ import constants from '../utils/constants';
4
+
5
+ const baseURL = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_BASE_URL') || constants.publicPath;
6
+ const prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants.publicPrefix;
5
7
  import cache from '../plugins/cache';
6
8
  export const ssoAuth = (token) => {
7
9
  return request({
@@ -114,7 +114,7 @@ export default {
114
114
  }).then(async () => {
115
115
  await pustReanswerToTeacher({
116
116
  chatId: this.chatId,
117
- msgId: list.chatId,
117
+ msgId: list.msgId,
118
118
  parentMsgId: list.parentMsgId,
119
119
  });
120
120
  this.$message.success('已发送给老师')
@@ -94,7 +94,7 @@ export default {
94
94
  scrollToBottom() {
95
95
  this.$refs.chatContainer.scrollTop = this.$refs.chatContainer.scrollHeight;
96
96
  },
97
- async postMessage(list, commonKey) {
97
+ async postMessage(list, commonKey, parentMsgId) {
98
98
  let reanswerParams = {};
99
99
  if (list) {
100
100
  reanswerParams = {
@@ -112,6 +112,7 @@ export default {
112
112
  resId: this.resId,
113
113
  chatId: this.chatId || undefined,
114
114
  commonKey: commonKey || false,
115
+ parentMsgId: parentMsgId || undefined,
115
116
  ...reanswerParams,
116
117
  }
117
118
  ]
@@ -143,7 +144,7 @@ export default {
143
144
  // 结束标识
144
145
  if (status === 2 || status === 1) {
145
146
  if (commonKey) {
146
- this.postMessage(list, commonKey);
147
+ this.postMessage(list, commonKey, parentMsgId);
147
148
  return;
148
149
  }
149
150
  currentList.finish = true;
@@ -1,7 +1,8 @@
1
1
  <template>
2
2
  <div class="hot-search-contain">
3
3
  <div class="robot">
4
- <img src="../static/robot.png" alt="" style="width: 48px; height: 48px">
4
+ <!-- <img src="../static/robot.png" alt="" style="width: 48px; height: 48px">-->
5
+ <div class="robot-image-div"></div>
5
6
  </div>
6
7
  <div class="robot-message">
7
8
  <p>Hi,我是学习助手。</p>
@@ -79,4 +80,10 @@ p {
79
80
  right: -16px;
80
81
  float: right;
81
82
  }
83
+ .robot-image-div {
84
+ width: 48px;
85
+ height: 48px;
86
+ background: url("../static/robot.png");
87
+ background-size: 100%;
88
+ }
82
89
  </style>
@@ -10,4 +10,6 @@ export default {
10
10
  'X-App-Secret': 'bc11ce7c44824fcaa23ff301a54b7094',
11
11
  appId,
12
12
  whiteList,
13
+ publicPath: 'https://agent.icve.com.cn/heatp-portal/do/',
14
+ publicPrefix: '/heatp'
13
15
  };
@@ -1,14 +1,15 @@
1
1
  import axios from 'axios'
2
2
  import cache from '../plugins/cache'
3
3
  import { Message } from 'element-ui'
4
- const door = sessionStorage.getItem('AI_BASE_URL_FOR_TEST');
4
+ const door = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_BASE_URL');
5
5
  import { decrypt } from './aes-utils';
6
+ import constants from '../utils/constants';
6
7
 
7
8
  axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
8
9
 
9
10
  const service = axios.create({
10
11
  // axios中请求配置有baseURL选项,表示请求URL公共部分
11
- baseURL: door || 'https://zjyw.icve.com.cn/ai-api',
12
+ baseURL: door || constants.publicPath,
12
13
  // 超时
13
14
  timeout: 80000
14
15
  })
@@ -7272,14 +7272,6 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACo
7272
7272
 
7273
7273
  /***/ }),
7274
7274
 
7275
- /***/ 931:
7276
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
7277
-
7278
- "use strict";
7279
- module.exports = __webpack_require__.p + "img/robot.7ad12cd4.png";
7280
-
7281
- /***/ }),
7282
-
7283
7275
  /***/ 951:
7284
7276
  /***/ (function(module) {
7285
7277
 
@@ -7415,6 +7407,7 @@ __webpack_require__.d(common_utils_namespaceObject, {
7415
7407
  hasBrowserEnv: function() { return hasBrowserEnv; },
7416
7408
  hasStandardBrowserEnv: function() { return hasStandardBrowserEnv; },
7417
7409
  hasStandardBrowserWebWorkerEnv: function() { return hasStandardBrowserWebWorkerEnv; },
7410
+ navigator: function() { return _navigator; },
7418
7411
  origin: function() { return origin; }
7419
7412
  });
7420
7413
 
@@ -7537,34 +7530,27 @@ var staticRenderFns = [];
7537
7530
 
7538
7531
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=ef2e02cc&scoped=true
7539
7532
 
7540
- ;// 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/hot-search.vue?vue&type=template&id=7eac98fe&scoped=true
7541
- var hot_searchvue_type_template_id_7eac98fe_scoped_true_render = function render() {
7533
+ ;// 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/hot-search.vue?vue&type=template&id=73bfe44c&scoped=true
7534
+ var hot_searchvue_type_template_id_73bfe44c_scoped_true_render = function render() {
7542
7535
  var _vm = this,
7543
7536
  _c = _vm._self._c;
7544
7537
  return _vm._m(0);
7545
7538
  };
7546
- var hot_searchvue_type_template_id_7eac98fe_scoped_true_staticRenderFns = [function () {
7539
+ var hot_searchvue_type_template_id_73bfe44c_scoped_true_staticRenderFns = [function () {
7547
7540
  var _vm = this,
7548
7541
  _c = _vm._self._c;
7549
7542
  return _c('div', {
7550
7543
  staticClass: "hot-search-contain"
7551
7544
  }, [_c('div', {
7552
7545
  staticClass: "robot"
7553
- }, [_c('img', {
7554
- staticStyle: {
7555
- "width": "48px",
7556
- "height": "48px"
7557
- },
7558
- attrs: {
7559
- "src": __webpack_require__(931),
7560
- "alt": ""
7561
- }
7546
+ }, [_c('div', {
7547
+ staticClass: "robot-image-div"
7562
7548
  })]), _c('div', {
7563
7549
  staticClass: "robot-message"
7564
7550
  }, [_c('p', [_vm._v("Hi,我是学习助手。")]), _c('p', [_vm._v("在这里你可以获得专业、准确的课程讲解,包括对公式的深入理解和细腻的解答。")])])]);
7565
7551
  }];
7566
7552
 
7567
- ;// CONCATENATED MODULE: ./components/demo/src/hot-search.vue?vue&type=template&id=7eac98fe&scoped=true
7553
+ ;// CONCATENATED MODULE: ./components/demo/src/hot-search.vue?vue&type=template&id=73bfe44c&scoped=true
7568
7554
 
7569
7555
  ;// 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/index.js??vue-loader-options!./components/demo/src/hot-search.vue?vue&type=script&lang=js
7570
7556
  /* harmony default export */ var hot_searchvue_type_script_lang_js = ({
@@ -7591,10 +7577,10 @@ var hot_searchvue_type_template_id_7eac98fe_scoped_true_staticRenderFns = [funct
7591
7577
  });
7592
7578
  ;// CONCATENATED MODULE: ./components/demo/src/hot-search.vue?vue&type=script&lang=js
7593
7579
  /* harmony default export */ var src_hot_searchvue_type_script_lang_js = (hot_searchvue_type_script_lang_js);
7594
- ;// 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/hot-search.vue?vue&type=style&index=0&id=7eac98fe&prod&lang=scss&scoped=true
7580
+ ;// 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/hot-search.vue?vue&type=style&index=0&id=73bfe44c&prod&lang=scss&scoped=true
7595
7581
  // extracted by mini-css-extract-plugin
7596
7582
 
7597
- ;// CONCATENATED MODULE: ./components/demo/src/hot-search.vue?vue&type=style&index=0&id=7eac98fe&prod&lang=scss&scoped=true
7583
+ ;// CONCATENATED MODULE: ./components/demo/src/hot-search.vue?vue&type=style&index=0&id=73bfe44c&prod&lang=scss&scoped=true
7598
7584
 
7599
7585
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
7600
7586
  /* globals __VUE_SSR_CONTEXT__ */
@@ -7705,18 +7691,18 @@ function normalizeComponent(
7705
7691
 
7706
7692
  var component = normalizeComponent(
7707
7693
  src_hot_searchvue_type_script_lang_js,
7708
- hot_searchvue_type_template_id_7eac98fe_scoped_true_render,
7709
- hot_searchvue_type_template_id_7eac98fe_scoped_true_staticRenderFns,
7694
+ hot_searchvue_type_template_id_73bfe44c_scoped_true_render,
7695
+ hot_searchvue_type_template_id_73bfe44c_scoped_true_staticRenderFns,
7710
7696
  false,
7711
7697
  null,
7712
- "7eac98fe",
7698
+ "73bfe44c",
7713
7699
  null
7714
7700
 
7715
7701
  )
7716
7702
 
7717
7703
  /* harmony default export */ var hot_search = (component.exports);
7718
- ;// 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=22a9c55b&scoped=true
7719
- var chatvue_type_template_id_22a9c55b_scoped_true_render = function render() {
7704
+ ;// 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=9027deca&scoped=true
7705
+ var chatvue_type_template_id_9027deca_scoped_true_render = function render() {
7720
7706
  var _vm = this,
7721
7707
  _c = _vm._self._c;
7722
7708
  return _c('div', {
@@ -7771,7 +7757,7 @@ var chatvue_type_template_id_22a9c55b_scoped_true_render = function render() {
7771
7757
  }) : _vm._e()], 1)]);
7772
7758
  }), 0);
7773
7759
  };
7774
- var chatvue_type_template_id_22a9c55b_scoped_true_staticRenderFns = [];
7760
+ var chatvue_type_template_id_9027deca_scoped_true_staticRenderFns = [];
7775
7761
 
7776
7762
  ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/bind.js
7777
7763
 
@@ -8574,7 +8560,10 @@ function AxiosError(message, code, config, request, response) {
8574
8560
  code && (this.code = code);
8575
8561
  config && (this.config = config);
8576
8562
  request && (this.request = request);
8577
- response && (this.response = response);
8563
+ if (response) {
8564
+ this.response = response;
8565
+ this.status = response.status ? response.status : null;
8566
+ }
8578
8567
  }
8579
8568
 
8580
8569
  utils.inherits(AxiosError, Error, {
@@ -8594,7 +8583,7 @@ utils.inherits(AxiosError, Error, {
8594
8583
  // Axios
8595
8584
  config: utils.toJSONObject(this.config),
8596
8585
  code: this.code,
8597
- status: this.response && this.response.status ? this.response.status : null
8586
+ status: this.status
8598
8587
  };
8599
8588
  }
8600
8589
  });
@@ -9112,6 +9101,8 @@ class InterceptorManager {
9112
9101
  ;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/common/utils.js
9113
9102
  const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
9114
9103
 
9104
+ const _navigator = typeof navigator === 'object' && navigator || undefined;
9105
+
9115
9106
  /**
9116
9107
  * Determine if we're running in a standard browser environment
9117
9108
  *
@@ -9129,10 +9120,8 @@ const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'unde
9129
9120
  *
9130
9121
  * @returns {boolean}
9131
9122
  */
9132
- const hasStandardBrowserEnv = (
9133
- (product) => {
9134
- return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0
9135
- })(typeof navigator !== 'undefined' && navigator.product);
9123
+ const hasStandardBrowserEnv = hasBrowserEnv &&
9124
+ (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
9136
9125
 
9137
9126
  /**
9138
9127
  * Determine if we're running in a standard browser webWorker environment
@@ -10067,7 +10056,7 @@ const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));
10067
10056
  // Standard browser envs have full support of the APIs needed to test
10068
10057
  // whether the request URL is of the same origin as current location.
10069
10058
  (function standardBrowserEnv() {
10070
- const msie = /(msie|trident)/i.test(navigator.userAgent);
10059
+ const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
10071
10060
  const urlParsingNode = document.createElement('a');
10072
10061
  let originURL;
10073
10062
 
@@ -10867,6 +10856,9 @@ const resolveBodyLength = async (headers, body) => {
10867
10856
  withCredentials = withCredentials ? 'include' : 'omit';
10868
10857
  }
10869
10858
 
10859
+ // Cloudflare Workers throws when credentials are defined
10860
+ // see https://github.com/cloudflare/workerd/issues/902
10861
+ const isCredentialsSupported = "credentials" in Request.prototype;
10870
10862
  request = new Request(url, {
10871
10863
  ...fetchOptions,
10872
10864
  signal: composedSignal,
@@ -10874,7 +10866,7 @@ const resolveBodyLength = async (headers, body) => {
10874
10866
  headers: headers.normalize().toJSON(),
10875
10867
  body: data,
10876
10868
  duplex: "half",
10877
- credentials: withCredentials
10869
+ credentials: isCredentialsSupported ? withCredentials : undefined
10878
10870
  });
10879
10871
 
10880
10872
  let response = await fetch(request);
@@ -11105,7 +11097,7 @@ function dispatchRequest(config) {
11105
11097
  }
11106
11098
 
11107
11099
  ;// CONCATENATED MODULE: ./node_modules/axios/lib/env/data.js
11108
- const VERSION = "1.7.4";
11100
+ const VERSION = "1.7.5";
11109
11101
  ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/validator.js
11110
11102
 
11111
11103
 
@@ -12173,16 +12165,32 @@ function decrypt(word) {
12173
12165
  let decryptedStr = decrypt.toString((crypto_js_default()).enc.Utf8);
12174
12166
  return decryptedStr.toString();
12175
12167
  }
12168
+ ;// CONCATENATED MODULE: ./components/demo/utils/constants.js
12169
+ let appId = '601a39a2a4a7cd88d5ddcef5';
12170
+ const whiteList = ['/home', '/overview'];
12171
+ if (({"NODE_ENV":"production","BASE_URL":""}).VITE_APP_BUILD_TYPE === 'aliyun') {
12172
+ appId = '6572ba195ec962924cc39951';
12173
+ }
12174
+ /* harmony default export */ var constants = ({
12175
+ 'X-Enterprise-Id': 'www.hep-zj.com.cn',
12176
+ 'X-App-Id': '90403a27c0704259ab7a3c8aab4489b3',
12177
+ 'X-App-Secret': 'bc11ce7c44824fcaa23ff301a54b7094',
12178
+ appId,
12179
+ whiteList,
12180
+ publicPath: 'https://agent.icve.com.cn/heatp-portal/do/',
12181
+ publicPrefix: '/heatp'
12182
+ });
12176
12183
  ;// CONCATENATED MODULE: ./components/demo/utils/request.js
12177
12184
 
12178
12185
 
12179
12186
 
12180
- const door = sessionStorage.getItem('AI_BASE_URL_FOR_TEST');
12187
+ const door = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_BASE_URL');
12188
+
12181
12189
 
12182
12190
  lib_axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8';
12183
12191
  const service = lib_axios.create({
12184
12192
  // axios中请求配置有baseURL选项,表示请求URL公共部分
12185
- baseURL: door || 'https://zjyw.icve.com.cn/ai-api',
12193
+ baseURL: door || constants.publicPath,
12186
12194
  // 超时
12187
12195
  timeout: 80000
12188
12196
  });
@@ -12441,8 +12449,9 @@ function defaultOnOpen(response) {
12441
12449
  ;// CONCATENATED MODULE: ./components/demo/api/index.js
12442
12450
 
12443
12451
 
12444
- const baseURL = sessionStorage.getItem('AI_BASE_URL_FOR_TEST') || 'https://zjyw.icve.com.cn/ai-api';
12445
- const prefix = sessionStorage.getItem('AI_PRE_FIX_FOR_TEST') || '/heatp';
12452
+
12453
+ const baseURL = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_BASE_URL') || constants.publicPath;
12454
+ const prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants.publicPrefix;
12446
12455
 
12447
12456
  const ssoAuth = token => {
12448
12457
  return request({
@@ -12530,19 +12539,6 @@ async function sendMessageEventSource(params, signal, onmessage) {
12530
12539
  onmessage
12531
12540
  });
12532
12541
  }
12533
- ;// CONCATENATED MODULE: ./components/demo/utils/constants.js
12534
- let appId = '601a39a2a4a7cd88d5ddcef5';
12535
- const whiteList = ['/home', '/overview'];
12536
- if (({"NODE_ENV":"production","BASE_URL":""}).VITE_APP_BUILD_TYPE === 'aliyun') {
12537
- appId = '6572ba195ec962924cc39951';
12538
- }
12539
- /* harmony default export */ var constants = ({
12540
- 'X-Enterprise-Id': 'www.hep-zj.com.cn',
12541
- 'X-App-Id': '90403a27c0704259ab7a3c8aab4489b3',
12542
- 'X-App-Secret': 'bc11ce7c44824fcaa23ff301a54b7094',
12543
- appId,
12544
- whiteList
12545
- });
12546
12542
  ;// CONCATENATED MODULE: ./components/demo/utils/config.js
12547
12543
 
12548
12544
 
@@ -12585,8 +12581,8 @@ const getUserInfo = async token => {
12585
12581
  });
12586
12582
  cache.session.setJSON('SRKJ_TOKEN_CACHE', userRes);
12587
12583
  };
12588
- ;// 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=52fd8f2e&scoped=true
12589
- var chat_toolsvue_type_template_id_52fd8f2e_scoped_true_render = function render() {
12584
+ ;// 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=2c94312a&scoped=true
12585
+ var chat_toolsvue_type_template_id_2c94312a_scoped_true_render = function render() {
12590
12586
  var _vm = this,
12591
12587
  _c = _vm._self._c;
12592
12588
  return _c('div', {
@@ -12747,9 +12743,9 @@ var chat_toolsvue_type_template_id_52fd8f2e_scoped_true_render = function render
12747
12743
  }
12748
12744
  }, [_vm._v("提交")])], 1)], 1)])])], 1)]);
12749
12745
  };
12750
- var chat_toolsvue_type_template_id_52fd8f2e_scoped_true_staticRenderFns = [];
12746
+ var chat_toolsvue_type_template_id_2c94312a_scoped_true_staticRenderFns = [];
12751
12747
 
12752
- ;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=template&id=52fd8f2e&scoped=true
12748
+ ;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=template&id=2c94312a&scoped=true
12753
12749
 
12754
12750
  ;// 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/index.js??vue-loader-options!./components/demo/src/chat-tools.vue?vue&type=script&lang=js
12755
12751
 
@@ -12807,7 +12803,7 @@ var chat_toolsvue_type_template_id_52fd8f2e_scoped_true_staticRenderFns = [];
12807
12803
  }).then(async () => {
12808
12804
  await pustReanswerToTeacher({
12809
12805
  chatId: this.chatId,
12810
- msgId: list.chatId,
12806
+ msgId: list.msgId,
12811
12807
  parentMsgId: list.parentMsgId
12812
12808
  });
12813
12809
  this.$message.success('已发送给老师');
@@ -12853,10 +12849,10 @@ var chat_toolsvue_type_template_id_52fd8f2e_scoped_true_staticRenderFns = [];
12853
12849
  });
12854
12850
  ;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=script&lang=js
12855
12851
  /* harmony default export */ var src_chat_toolsvue_type_script_lang_js = (chat_toolsvue_type_script_lang_js);
12856
- ;// 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-tools.vue?vue&type=style&index=0&id=52fd8f2e&prod&lang=scss&scoped=true
12852
+ ;// 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-tools.vue?vue&type=style&index=0&id=2c94312a&prod&lang=scss&scoped=true
12857
12853
  // extracted by mini-css-extract-plugin
12858
12854
 
12859
- ;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=style&index=0&id=52fd8f2e&prod&lang=scss&scoped=true
12855
+ ;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=style&index=0&id=2c94312a&prod&lang=scss&scoped=true
12860
12856
 
12861
12857
  ;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue
12862
12858
 
@@ -12869,11 +12865,11 @@ var chat_toolsvue_type_template_id_52fd8f2e_scoped_true_staticRenderFns = [];
12869
12865
 
12870
12866
  var chat_tools_component = normalizeComponent(
12871
12867
  src_chat_toolsvue_type_script_lang_js,
12872
- chat_toolsvue_type_template_id_52fd8f2e_scoped_true_render,
12873
- chat_toolsvue_type_template_id_52fd8f2e_scoped_true_staticRenderFns,
12868
+ chat_toolsvue_type_template_id_2c94312a_scoped_true_render,
12869
+ chat_toolsvue_type_template_id_2c94312a_scoped_true_staticRenderFns,
12874
12870
  false,
12875
12871
  null,
12876
- "52fd8f2e",
12872
+ "2c94312a",
12877
12873
  null
12878
12874
 
12879
12875
  )
@@ -12943,7 +12939,7 @@ const signal = controller.signal;
12943
12939
  scrollToBottom() {
12944
12940
  this.$refs.chatContainer.scrollTop = this.$refs.chatContainer.scrollHeight;
12945
12941
  },
12946
- async postMessage(list, commonKey) {
12942
+ async postMessage(list, commonKey, parentMsgId) {
12947
12943
  let reanswerParams = {};
12948
12944
  if (list) {
12949
12945
  reanswerParams = {
@@ -12960,6 +12956,7 @@ const signal = controller.signal;
12960
12956
  resId: this.resId,
12961
12957
  chatId: this.chatId || undefined,
12962
12958
  commonKey: commonKey || false,
12959
+ parentMsgId: parentMsgId || undefined,
12963
12960
  ...reanswerParams
12964
12961
  }]
12965
12962
  };
@@ -12999,7 +12996,7 @@ const signal = controller.signal;
12999
12996
  // 结束标识
13000
12997
  if (status === 2 || status === 1) {
13001
12998
  if (commonKey) {
13002
- this.postMessage(list, commonKey);
12999
+ this.postMessage(list, commonKey, parentMsgId);
13003
13000
  return;
13004
13001
  }
13005
13002
  currentList.finish = true;
@@ -13033,10 +13030,10 @@ const signal = controller.signal;
13033
13030
  });
13034
13031
  ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=script&lang=js
13035
13032
  /* harmony default export */ var src_chatvue_type_script_lang_js = (chatvue_type_script_lang_js);
13036
- ;// 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=22a9c55b&prod&lang=scss&scoped=true
13033
+ ;// 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=9027deca&prod&lang=scss&scoped=true
13037
13034
  // extracted by mini-css-extract-plugin
13038
13035
 
13039
- ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=22a9c55b&prod&lang=scss&scoped=true
13036
+ ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=9027deca&prod&lang=scss&scoped=true
13040
13037
 
13041
13038
  ;// CONCATENATED MODULE: ./components/demo/src/chat.vue
13042
13039
 
@@ -13049,11 +13046,11 @@ const signal = controller.signal;
13049
13046
 
13050
13047
  var chat_component = normalizeComponent(
13051
13048
  src_chatvue_type_script_lang_js,
13052
- chatvue_type_template_id_22a9c55b_scoped_true_render,
13053
- chatvue_type_template_id_22a9c55b_scoped_true_staticRenderFns,
13049
+ chatvue_type_template_id_9027deca_scoped_true_render,
13050
+ chatvue_type_template_id_9027deca_scoped_true_staticRenderFns,
13054
13051
  false,
13055
13052
  null,
13056
- "22a9c55b",
13053
+ "9027deca",
13057
13054
  null
13058
13055
 
13059
13056
  )