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.
- package/components/demo/api/index.js +4 -2
- package/components/demo/src/chat-tools.vue +1 -1
- package/components/demo/src/chat.vue +3 -2
- package/components/demo/src/hot-search.vue +8 -1
- package/components/demo/utils/constants.js +2 -0
- package/components/demo/utils/request.js +3 -2
- package/dist/ai-assistant-pro.common.js +69 -72
- package/dist/ai-assistant-pro.common.js.map +1 -1
- package/dist/ai-assistant-pro.css +1 -1
- package/dist/ai-assistant-pro.umd.js +69 -72
- package/dist/ai-assistant-pro.umd.js.map +1 -1
- package/dist/ai-assistant-pro.umd.min.js +2 -2
- package/dist/ai-assistant-pro.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.hot-search-contain[data-v-
|
|
1
|
+
.hot-search-contain[data-v-73bfe44c]{display:flex}.robot[data-v-73bfe44c]{min-width:48px;height:48px}.robot-message[data-v-73bfe44c]{width:100%;background-color:#f1f3f5;border-radius:12px;border-top-left-radius:0;padding:24px 24px;margin-left:16px}.hot-list[data-v-73bfe44c]{background-color:#fff;border-radius:8px;font-size:16px;padding:10px 24px 10px 16px;margin-top:16px;cursor:pointer}.hot-list[data-v-73bfe44c]:hover{background-color:rgba(96,96,224,.24)}p[data-v-73bfe44c]{margin:0;font-size:18px;color:#202840}.go-icon[data-v-73bfe44c]{position:relative;right:-16px;float:right}.robot-image-div[data-v-73bfe44c]{width:48px;height:48px;background:url(img/robot.7ad12cd4.png);background-size:100%}.robot-tools[data-v-2c94312a]{position:relative;margin-top:8px}.robot-tools .robot-reanswer[data-v-2c94312a]{width:104px;height:32px;background-color:rgba(32,40,64,.078);border-radius:16px;font-size:13px;text-align:center;line-height:32px;cursor:pointer}.robot-tools .robot-reanswer[data-v-2c94312a]:hover{background:#ced0f0}.robot-tools .robot-reanswer i[data-v-2c94312a]{font-size:18px;vertical-align:middle}.robot-tools .stopMsg[data-v-2c94312a]{cursor:pointer;height:20px;width:100px;font-size:14px;color:#316cff}.robot-tools .tools-icon[data-v-2c94312a]{width:40px;height:32px;background-color:rgba(32,40,64,.078);border-radius:16px;text-align:center;line-height:34px;cursor:pointer;margin-right:8px}.robot-tools .tools-icon[data-v-2c94312a]:hover{background:#ced0f0}.robot-tools .right-tools[data-v-2c94312a]{position:absolute;right:0;top:0;display:flex}.popover-box[data-v-2c94312a]{width:380px;height:450px;border-radius:20px;padding:20px;box-sizing:border-box;position:relative}.popover-box .pop-title[data-v-2c94312a]{width:220px;height:60px;font-family:PingFangSC,PingFang SC;font-weight:500;font-size:22px;color:#333;line-height:30px;text-align:left;font-style:normal}.popover-box .el-icon-close[data-v-2c94312a]{position:absolute;right:0;top:0;color:#333;cursor:pointer;transition:all .3s}.popover-box .el-icon-close[data-v-2c94312a]:hover{transform:rotate(-180deg)}.popover-box .error-list[data-v-2c94312a]{display:flex;flex-wrap:wrap;margin-top:20px}.popover-box .error-list .el-textarea__inner[data-v-2c94312a]{resize:none}.popover-box .error-list .sumit-button[data-v-2c94312a]{margin-top:20px;margin-left:114px}.popover-box .error-list .sumit-button .el-button[data-v-2c94312a]{width:112px;height:42px;background:linear-gradient(180deg,#5fa5ff,#316cff);border-radius:21px;color:#fff}.popover-box .error-list label[data-v-2c94312a]{text-align:center}.popover-box .error-list .check.is-bordered[data-v-2c94312a]{margin-right:0;width:165px;height:42px;background:#f3f7ff;border-radius:6px;margin-left:0;margin-bottom:10px}.popover-box .error-list .check.is-bordered[data-v-2c94312a]:nth-child(2n-1){margin-right:10px}.popover-box .error-list .check.is-bordered[data-v-2c94312a] .el-checkbox__inner{display:none}.popover-box[data-v-2c94312a] .el-checkbox.is-bordered.is-checked{border-color:#316cff}.popover-box[data-v-2c94312a] .el-checkbox__input.is-checked+.el-checkbox__label{color:#316cff}.chat-contain[data-v-9027deca]{height:100%;overflow-y:auto;padding-right:32px}.chat-contain[data-v-9027deca]::-webkit-scrollbar{width:8px;border-radius:10px}.chat-contain[data-v-9027deca]::-webkit-scrollbar-track{background:transparent}.chat-contain[data-v-9027deca]::-webkit-scrollbar-thumb{background:rgba(96,128,240,.6);border-radius:4px;-webkit-box-shadow:inset 0 0 2px transparent;-webkit-transition:all .2s linear;transition:all .2s linear}.chat-contain[data-v-9027deca]::-webkit-scrollbar-thumb:hover{background:rgba(96,128,240,.5)}.message[data-v-9027deca]{display:flex;margin-bottom:16px}.robot[data-v-9027deca]{min-width:48px;height:48px}.user[data-v-9027deca]{color:#fff;line-height:48px;border-radius:20px;text-align:center;box-shadow:3px 3px 6px rgba(0,3,6,.16);background:linear-gradient(90deg,#0090f0,#9030f0)}.user-list[data-v-9027deca]{display:flex;justify-content:end;flex-direction:row-reverse}.user-list .robot-message[data-v-9027deca]{margin-left:0;margin-right:16px;padding:12px 24px;color:#fff}.robot-message[data-v-9027deca]{width:100%;background-color:#f1f3f5;border-radius:12px;border-top-left-radius:0;padding:24px 24px;margin-left:16px;line-height:24px}.user-info[data-v-9027deca]{width:auto;border-radius:12px;border-top-right-radius:0;background:linear-gradient(90deg,#8288dc,#305adc)}.link[data-v-9027deca]{width:100%;margin-bottom:16px}.link .link-title[data-v-9027deca]{color:#878aab;font-size:14px;margin:8px 0;text-align:left}.link .link-content[data-v-9027deca]{background:#fafafd;border-radius:8px;padding:8px;max-height:170px;overflow:auto}.link .link-content .links[data-v-9027deca]{position:relative;height:22px;line-height:22px;margin:8px 0;margin-left:10px}.link .link-content .links a[data-v-9027deca]{color:#1890ff}.link .link-content .links a[data-v-9027deca]:hover{color:#615ced}.link .link-content .links span[data-v-9027deca]{display:inline-block;font-size:14px}.robot-image-div[data-v-9027deca]{width:48px;height:48px;background:url(img/robot.7ad12cd4.png);background-size:100%}.ai-contain[data-v-ef2e02cc]{width:1000px;height:100%;border-radius:16px;box-shadow:0 1px 8px rgba(32,40,64,.32);padding:16px 16px 16px 16px;box-sizing:border-box;position:relative;background:#fff}.ai-contain-header[data-v-ef2e02cc]{position:relative;z-index:1;display:flex;justify-content:space-between}.logo-title[data-v-ef2e02cc]{font-weight:700;color:#202840;cursor:pointer;font-size:18px}.title-font[data-v-ef2e02cc]{display:inline-block;vertical-align:top;margin-top:12px;margin-left:12px;color:#2880f0}.icon-close[data-v-ef2e02cc]{cursor:pointer;position:relative;right:0}.icon-close i[data-v-ef2e02cc]{font-weight:700!important}.ai-message-send-linear[data-v-ef2e02cc]{padding:2px;border-radius:40px}.tools-wrap[data-v-ef2e02cc]{width:calc(100% - 140px);margin-left:80px;display:flex;justify-content:space-between;font-size:13px;margin-bottom:8px;color:#08d}.tools-wrap span[data-v-ef2e02cc]{cursor:pointer}.tools-wrap span[data-v-ef2e02cc]:hover{color:#0ad}.ai-message-send[data-v-ef2e02cc]{width:calc(100% - 133px);background:linear-gradient(90deg,#3c8,#69f,#f93);padding:3px;border-radius:40px;position:relative;margin-left:68px}.ai-send-icon[data-v-ef2e02cc]{position:absolute;right:14px;bottom:14px;width:40px;height:40px;text-align:center;line-height:52px;border-radius:20px;cursor:pointer;background:linear-gradient(90deg,#0090f0,#9030f0)}.ai-main-content[data-v-ef2e02cc]{position:relative;z-index:1;height:calc(100% - 188px);padding:16px 0 16px 8px}.disclaimer[data-v-ef2e02cc]{margin:0;font-size:14px;color:#cfcfcf;text-align:center;margin-top:6px}.bg-image[data-v-ef2e02cc]{position:absolute;top:0;left:0;width:100%;height:248px;background:linear-gradient(180deg,rgba(96,96,244,.1),rgba(44,144,240,0));border-radius:16px 0}[data-v-ef2e02cc] .ai-message-send .el-input__inner{height:60px;font-size:16px;color:rgba(51,51,51,.75);border:0;border-radius:40px;background:linear-gradient(180deg,#fff,#d8f0fb);padding:0 24px}[data-v-ef2e02cc] .ai-message-send .el-input__inner::-moz-placeholder{color:rgba(51,51,51,.75)}[data-v-ef2e02cc] .ai-message-send .el-input__inner::placeholder{color:rgba(51,51,51,.75)}
|
|
@@ -7282,14 +7282,6 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACo
|
|
|
7282
7282
|
|
|
7283
7283
|
/***/ }),
|
|
7284
7284
|
|
|
7285
|
-
/***/ 931:
|
|
7286
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7287
|
-
|
|
7288
|
-
"use strict";
|
|
7289
|
-
module.exports = __webpack_require__.p + "img/robot.7ad12cd4.png";
|
|
7290
|
-
|
|
7291
|
-
/***/ }),
|
|
7292
|
-
|
|
7293
7285
|
/***/ 951:
|
|
7294
7286
|
/***/ (function(module) {
|
|
7295
7287
|
|
|
@@ -7433,6 +7425,7 @@ __webpack_require__.d(common_utils_namespaceObject, {
|
|
|
7433
7425
|
hasBrowserEnv: function() { return hasBrowserEnv; },
|
|
7434
7426
|
hasStandardBrowserEnv: function() { return hasStandardBrowserEnv; },
|
|
7435
7427
|
hasStandardBrowserWebWorkerEnv: function() { return hasStandardBrowserWebWorkerEnv; },
|
|
7428
|
+
navigator: function() { return _navigator; },
|
|
7436
7429
|
origin: function() { return origin; }
|
|
7437
7430
|
});
|
|
7438
7431
|
|
|
@@ -7555,34 +7548,27 @@ var staticRenderFns = [];
|
|
|
7555
7548
|
|
|
7556
7549
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=ef2e02cc&scoped=true
|
|
7557
7550
|
|
|
7558
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
7559
|
-
var
|
|
7551
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
7552
|
+
var hot_searchvue_type_template_id_73bfe44c_scoped_true_render = function render() {
|
|
7560
7553
|
var _vm = this,
|
|
7561
7554
|
_c = _vm._self._c;
|
|
7562
7555
|
return _vm._m(0);
|
|
7563
7556
|
};
|
|
7564
|
-
var
|
|
7557
|
+
var hot_searchvue_type_template_id_73bfe44c_scoped_true_staticRenderFns = [function () {
|
|
7565
7558
|
var _vm = this,
|
|
7566
7559
|
_c = _vm._self._c;
|
|
7567
7560
|
return _c('div', {
|
|
7568
7561
|
staticClass: "hot-search-contain"
|
|
7569
7562
|
}, [_c('div', {
|
|
7570
7563
|
staticClass: "robot"
|
|
7571
|
-
}, [_c('
|
|
7572
|
-
|
|
7573
|
-
"width": "48px",
|
|
7574
|
-
"height": "48px"
|
|
7575
|
-
},
|
|
7576
|
-
attrs: {
|
|
7577
|
-
"src": __webpack_require__(931),
|
|
7578
|
-
"alt": ""
|
|
7579
|
-
}
|
|
7564
|
+
}, [_c('div', {
|
|
7565
|
+
staticClass: "robot-image-div"
|
|
7580
7566
|
})]), _c('div', {
|
|
7581
7567
|
staticClass: "robot-message"
|
|
7582
7568
|
}, [_c('p', [_vm._v("Hi,我是学习助手。")]), _c('p', [_vm._v("在这里你可以获得专业、准确的课程讲解,包括对公式的深入理解和细腻的解答。")])])]);
|
|
7583
7569
|
}];
|
|
7584
7570
|
|
|
7585
|
-
;// CONCATENATED MODULE: ./components/demo/src/hot-search.vue?vue&type=template&id=
|
|
7571
|
+
;// CONCATENATED MODULE: ./components/demo/src/hot-search.vue?vue&type=template&id=73bfe44c&scoped=true
|
|
7586
7572
|
|
|
7587
7573
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
7588
7574
|
/* harmony default export */ var hot_searchvue_type_script_lang_js = ({
|
|
@@ -7609,10 +7595,10 @@ var hot_searchvue_type_template_id_7eac98fe_scoped_true_staticRenderFns = [funct
|
|
|
7609
7595
|
});
|
|
7610
7596
|
;// CONCATENATED MODULE: ./components/demo/src/hot-search.vue?vue&type=script&lang=js
|
|
7611
7597
|
/* harmony default export */ var src_hot_searchvue_type_script_lang_js = (hot_searchvue_type_script_lang_js);
|
|
7612
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
7598
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
7613
7599
|
// extracted by mini-css-extract-plugin
|
|
7614
7600
|
|
|
7615
|
-
;// CONCATENATED MODULE: ./components/demo/src/hot-search.vue?vue&type=style&index=0&id=
|
|
7601
|
+
;// CONCATENATED MODULE: ./components/demo/src/hot-search.vue?vue&type=style&index=0&id=73bfe44c&prod&lang=scss&scoped=true
|
|
7616
7602
|
|
|
7617
7603
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
7618
7604
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -7723,18 +7709,18 @@ function normalizeComponent(
|
|
|
7723
7709
|
|
|
7724
7710
|
var component = normalizeComponent(
|
|
7725
7711
|
src_hot_searchvue_type_script_lang_js,
|
|
7726
|
-
|
|
7727
|
-
|
|
7712
|
+
hot_searchvue_type_template_id_73bfe44c_scoped_true_render,
|
|
7713
|
+
hot_searchvue_type_template_id_73bfe44c_scoped_true_staticRenderFns,
|
|
7728
7714
|
false,
|
|
7729
7715
|
null,
|
|
7730
|
-
"
|
|
7716
|
+
"73bfe44c",
|
|
7731
7717
|
null
|
|
7732
7718
|
|
|
7733
7719
|
)
|
|
7734
7720
|
|
|
7735
7721
|
/* harmony default export */ var hot_search = (component.exports);
|
|
7736
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
7737
|
-
var
|
|
7722
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
7723
|
+
var chatvue_type_template_id_9027deca_scoped_true_render = function render() {
|
|
7738
7724
|
var _vm = this,
|
|
7739
7725
|
_c = _vm._self._c;
|
|
7740
7726
|
return _c('div', {
|
|
@@ -7789,7 +7775,7 @@ var chatvue_type_template_id_22a9c55b_scoped_true_render = function render() {
|
|
|
7789
7775
|
}) : _vm._e()], 1)]);
|
|
7790
7776
|
}), 0);
|
|
7791
7777
|
};
|
|
7792
|
-
var
|
|
7778
|
+
var chatvue_type_template_id_9027deca_scoped_true_staticRenderFns = [];
|
|
7793
7779
|
|
|
7794
7780
|
;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/bind.js
|
|
7795
7781
|
|
|
@@ -8592,7 +8578,10 @@ function AxiosError(message, code, config, request, response) {
|
|
|
8592
8578
|
code && (this.code = code);
|
|
8593
8579
|
config && (this.config = config);
|
|
8594
8580
|
request && (this.request = request);
|
|
8595
|
-
|
|
8581
|
+
if (response) {
|
|
8582
|
+
this.response = response;
|
|
8583
|
+
this.status = response.status ? response.status : null;
|
|
8584
|
+
}
|
|
8596
8585
|
}
|
|
8597
8586
|
|
|
8598
8587
|
utils.inherits(AxiosError, Error, {
|
|
@@ -8612,7 +8601,7 @@ utils.inherits(AxiosError, Error, {
|
|
|
8612
8601
|
// Axios
|
|
8613
8602
|
config: utils.toJSONObject(this.config),
|
|
8614
8603
|
code: this.code,
|
|
8615
|
-
status: this.
|
|
8604
|
+
status: this.status
|
|
8616
8605
|
};
|
|
8617
8606
|
}
|
|
8618
8607
|
});
|
|
@@ -9130,6 +9119,8 @@ class InterceptorManager {
|
|
|
9130
9119
|
;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/common/utils.js
|
|
9131
9120
|
const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
9132
9121
|
|
|
9122
|
+
const _navigator = typeof navigator === 'object' && navigator || undefined;
|
|
9123
|
+
|
|
9133
9124
|
/**
|
|
9134
9125
|
* Determine if we're running in a standard browser environment
|
|
9135
9126
|
*
|
|
@@ -9147,10 +9138,8 @@ const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'unde
|
|
|
9147
9138
|
*
|
|
9148
9139
|
* @returns {boolean}
|
|
9149
9140
|
*/
|
|
9150
|
-
const hasStandardBrowserEnv =
|
|
9151
|
-
(product)
|
|
9152
|
-
return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0
|
|
9153
|
-
})(typeof navigator !== 'undefined' && navigator.product);
|
|
9141
|
+
const hasStandardBrowserEnv = hasBrowserEnv &&
|
|
9142
|
+
(!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
|
|
9154
9143
|
|
|
9155
9144
|
/**
|
|
9156
9145
|
* Determine if we're running in a standard browser webWorker environment
|
|
@@ -10085,7 +10074,7 @@ const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));
|
|
|
10085
10074
|
// Standard browser envs have full support of the APIs needed to test
|
|
10086
10075
|
// whether the request URL is of the same origin as current location.
|
|
10087
10076
|
(function standardBrowserEnv() {
|
|
10088
|
-
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
10077
|
+
const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
|
|
10089
10078
|
const urlParsingNode = document.createElement('a');
|
|
10090
10079
|
let originURL;
|
|
10091
10080
|
|
|
@@ -10885,6 +10874,9 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
10885
10874
|
withCredentials = withCredentials ? 'include' : 'omit';
|
|
10886
10875
|
}
|
|
10887
10876
|
|
|
10877
|
+
// Cloudflare Workers throws when credentials are defined
|
|
10878
|
+
// see https://github.com/cloudflare/workerd/issues/902
|
|
10879
|
+
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
10888
10880
|
request = new Request(url, {
|
|
10889
10881
|
...fetchOptions,
|
|
10890
10882
|
signal: composedSignal,
|
|
@@ -10892,7 +10884,7 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
10892
10884
|
headers: headers.normalize().toJSON(),
|
|
10893
10885
|
body: data,
|
|
10894
10886
|
duplex: "half",
|
|
10895
|
-
credentials: withCredentials
|
|
10887
|
+
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
10896
10888
|
});
|
|
10897
10889
|
|
|
10898
10890
|
let response = await fetch(request);
|
|
@@ -11123,7 +11115,7 @@ function dispatchRequest(config) {
|
|
|
11123
11115
|
}
|
|
11124
11116
|
|
|
11125
11117
|
;// CONCATENATED MODULE: ./node_modules/axios/lib/env/data.js
|
|
11126
|
-
const VERSION = "1.7.
|
|
11118
|
+
const VERSION = "1.7.5";
|
|
11127
11119
|
;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/validator.js
|
|
11128
11120
|
|
|
11129
11121
|
|
|
@@ -12191,16 +12183,32 @@ function decrypt(word) {
|
|
|
12191
12183
|
let decryptedStr = decrypt.toString((crypto_js_default()).enc.Utf8);
|
|
12192
12184
|
return decryptedStr.toString();
|
|
12193
12185
|
}
|
|
12186
|
+
;// CONCATENATED MODULE: ./components/demo/utils/constants.js
|
|
12187
|
+
let appId = '601a39a2a4a7cd88d5ddcef5';
|
|
12188
|
+
const whiteList = ['/home', '/overview'];
|
|
12189
|
+
if (({"NODE_ENV":"production","BASE_URL":""}).VITE_APP_BUILD_TYPE === 'aliyun') {
|
|
12190
|
+
appId = '6572ba195ec962924cc39951';
|
|
12191
|
+
}
|
|
12192
|
+
/* harmony default export */ var constants = ({
|
|
12193
|
+
'X-Enterprise-Id': 'www.hep-zj.com.cn',
|
|
12194
|
+
'X-App-Id': '90403a27c0704259ab7a3c8aab4489b3',
|
|
12195
|
+
'X-App-Secret': 'bc11ce7c44824fcaa23ff301a54b7094',
|
|
12196
|
+
appId,
|
|
12197
|
+
whiteList,
|
|
12198
|
+
publicPath: 'https://agent.icve.com.cn/heatp-portal/do/',
|
|
12199
|
+
publicPrefix: '/heatp'
|
|
12200
|
+
});
|
|
12194
12201
|
;// CONCATENATED MODULE: ./components/demo/utils/request.js
|
|
12195
12202
|
|
|
12196
12203
|
|
|
12197
12204
|
|
|
12198
|
-
const door = sessionStorage.getItem('
|
|
12205
|
+
const door = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_BASE_URL');
|
|
12206
|
+
|
|
12199
12207
|
|
|
12200
12208
|
lib_axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8';
|
|
12201
12209
|
const service = lib_axios.create({
|
|
12202
12210
|
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
|
12203
|
-
baseURL: door ||
|
|
12211
|
+
baseURL: door || constants.publicPath,
|
|
12204
12212
|
// 超时
|
|
12205
12213
|
timeout: 80000
|
|
12206
12214
|
});
|
|
@@ -12459,8 +12467,9 @@ function defaultOnOpen(response) {
|
|
|
12459
12467
|
;// CONCATENATED MODULE: ./components/demo/api/index.js
|
|
12460
12468
|
|
|
12461
12469
|
|
|
12462
|
-
|
|
12463
|
-
const
|
|
12470
|
+
|
|
12471
|
+
const baseURL = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_BASE_URL') || constants.publicPath;
|
|
12472
|
+
const prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants.publicPrefix;
|
|
12464
12473
|
|
|
12465
12474
|
const ssoAuth = token => {
|
|
12466
12475
|
return request({
|
|
@@ -12548,19 +12557,6 @@ async function sendMessageEventSource(params, signal, onmessage) {
|
|
|
12548
12557
|
onmessage
|
|
12549
12558
|
});
|
|
12550
12559
|
}
|
|
12551
|
-
;// CONCATENATED MODULE: ./components/demo/utils/constants.js
|
|
12552
|
-
let appId = '601a39a2a4a7cd88d5ddcef5';
|
|
12553
|
-
const whiteList = ['/home', '/overview'];
|
|
12554
|
-
if (({"NODE_ENV":"production","BASE_URL":""}).VITE_APP_BUILD_TYPE === 'aliyun') {
|
|
12555
|
-
appId = '6572ba195ec962924cc39951';
|
|
12556
|
-
}
|
|
12557
|
-
/* harmony default export */ var constants = ({
|
|
12558
|
-
'X-Enterprise-Id': 'www.hep-zj.com.cn',
|
|
12559
|
-
'X-App-Id': '90403a27c0704259ab7a3c8aab4489b3',
|
|
12560
|
-
'X-App-Secret': 'bc11ce7c44824fcaa23ff301a54b7094',
|
|
12561
|
-
appId,
|
|
12562
|
-
whiteList
|
|
12563
|
-
});
|
|
12564
12560
|
;// CONCATENATED MODULE: ./components/demo/utils/config.js
|
|
12565
12561
|
|
|
12566
12562
|
|
|
@@ -12603,8 +12599,8 @@ const getUserInfo = async token => {
|
|
|
12603
12599
|
});
|
|
12604
12600
|
cache.session.setJSON('SRKJ_TOKEN_CACHE', userRes);
|
|
12605
12601
|
};
|
|
12606
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
12607
|
-
var
|
|
12602
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
12603
|
+
var chat_toolsvue_type_template_id_2c94312a_scoped_true_render = function render() {
|
|
12608
12604
|
var _vm = this,
|
|
12609
12605
|
_c = _vm._self._c;
|
|
12610
12606
|
return _c('div', {
|
|
@@ -12765,9 +12761,9 @@ var chat_toolsvue_type_template_id_52fd8f2e_scoped_true_render = function render
|
|
|
12765
12761
|
}
|
|
12766
12762
|
}, [_vm._v("提交")])], 1)], 1)])])], 1)]);
|
|
12767
12763
|
};
|
|
12768
|
-
var
|
|
12764
|
+
var chat_toolsvue_type_template_id_2c94312a_scoped_true_staticRenderFns = [];
|
|
12769
12765
|
|
|
12770
|
-
;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=template&id=
|
|
12766
|
+
;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=template&id=2c94312a&scoped=true
|
|
12771
12767
|
|
|
12772
12768
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
12773
12769
|
|
|
@@ -12825,7 +12821,7 @@ var chat_toolsvue_type_template_id_52fd8f2e_scoped_true_staticRenderFns = [];
|
|
|
12825
12821
|
}).then(async () => {
|
|
12826
12822
|
await pustReanswerToTeacher({
|
|
12827
12823
|
chatId: this.chatId,
|
|
12828
|
-
msgId: list.
|
|
12824
|
+
msgId: list.msgId,
|
|
12829
12825
|
parentMsgId: list.parentMsgId
|
|
12830
12826
|
});
|
|
12831
12827
|
this.$message.success('已发送给老师');
|
|
@@ -12871,10 +12867,10 @@ var chat_toolsvue_type_template_id_52fd8f2e_scoped_true_staticRenderFns = [];
|
|
|
12871
12867
|
});
|
|
12872
12868
|
;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=script&lang=js
|
|
12873
12869
|
/* harmony default export */ var src_chat_toolsvue_type_script_lang_js = (chat_toolsvue_type_script_lang_js);
|
|
12874
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
12870
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
12875
12871
|
// extracted by mini-css-extract-plugin
|
|
12876
12872
|
|
|
12877
|
-
;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=style&index=0&id=
|
|
12873
|
+
;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=style&index=0&id=2c94312a&prod&lang=scss&scoped=true
|
|
12878
12874
|
|
|
12879
12875
|
;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue
|
|
12880
12876
|
|
|
@@ -12887,11 +12883,11 @@ var chat_toolsvue_type_template_id_52fd8f2e_scoped_true_staticRenderFns = [];
|
|
|
12887
12883
|
|
|
12888
12884
|
var chat_tools_component = normalizeComponent(
|
|
12889
12885
|
src_chat_toolsvue_type_script_lang_js,
|
|
12890
|
-
|
|
12891
|
-
|
|
12886
|
+
chat_toolsvue_type_template_id_2c94312a_scoped_true_render,
|
|
12887
|
+
chat_toolsvue_type_template_id_2c94312a_scoped_true_staticRenderFns,
|
|
12892
12888
|
false,
|
|
12893
12889
|
null,
|
|
12894
|
-
"
|
|
12890
|
+
"2c94312a",
|
|
12895
12891
|
null
|
|
12896
12892
|
|
|
12897
12893
|
)
|
|
@@ -12961,7 +12957,7 @@ const signal = controller.signal;
|
|
|
12961
12957
|
scrollToBottom() {
|
|
12962
12958
|
this.$refs.chatContainer.scrollTop = this.$refs.chatContainer.scrollHeight;
|
|
12963
12959
|
},
|
|
12964
|
-
async postMessage(list, commonKey) {
|
|
12960
|
+
async postMessage(list, commonKey, parentMsgId) {
|
|
12965
12961
|
let reanswerParams = {};
|
|
12966
12962
|
if (list) {
|
|
12967
12963
|
reanswerParams = {
|
|
@@ -12978,6 +12974,7 @@ const signal = controller.signal;
|
|
|
12978
12974
|
resId: this.resId,
|
|
12979
12975
|
chatId: this.chatId || undefined,
|
|
12980
12976
|
commonKey: commonKey || false,
|
|
12977
|
+
parentMsgId: parentMsgId || undefined,
|
|
12981
12978
|
...reanswerParams
|
|
12982
12979
|
}]
|
|
12983
12980
|
};
|
|
@@ -13017,7 +13014,7 @@ const signal = controller.signal;
|
|
|
13017
13014
|
// 结束标识
|
|
13018
13015
|
if (status === 2 || status === 1) {
|
|
13019
13016
|
if (commonKey) {
|
|
13020
|
-
this.postMessage(list, commonKey);
|
|
13017
|
+
this.postMessage(list, commonKey, parentMsgId);
|
|
13021
13018
|
return;
|
|
13022
13019
|
}
|
|
13023
13020
|
currentList.finish = true;
|
|
@@ -13051,10 +13048,10 @@ const signal = controller.signal;
|
|
|
13051
13048
|
});
|
|
13052
13049
|
;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=script&lang=js
|
|
13053
13050
|
/* harmony default export */ var src_chatvue_type_script_lang_js = (chatvue_type_script_lang_js);
|
|
13054
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
13051
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
13055
13052
|
// extracted by mini-css-extract-plugin
|
|
13056
13053
|
|
|
13057
|
-
;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=
|
|
13054
|
+
;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=9027deca&prod&lang=scss&scoped=true
|
|
13058
13055
|
|
|
13059
13056
|
;// CONCATENATED MODULE: ./components/demo/src/chat.vue
|
|
13060
13057
|
|
|
@@ -13067,11 +13064,11 @@ const signal = controller.signal;
|
|
|
13067
13064
|
|
|
13068
13065
|
var chat_component = normalizeComponent(
|
|
13069
13066
|
src_chatvue_type_script_lang_js,
|
|
13070
|
-
|
|
13071
|
-
|
|
13067
|
+
chatvue_type_template_id_9027deca_scoped_true_render,
|
|
13068
|
+
chatvue_type_template_id_9027deca_scoped_true_staticRenderFns,
|
|
13072
13069
|
false,
|
|
13073
13070
|
null,
|
|
13074
|
-
"
|
|
13071
|
+
"9027deca",
|
|
13075
13072
|
null
|
|
13076
13073
|
|
|
13077
13074
|
)
|