ai-error-assistant-pro 0.0.14 → 0.0.15
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/src/main.vue +9 -8
- package/components/demo/utils/config.js +2 -1
- package/dist/ai-error-assistant-pro.common.js +19 -17
- package/dist/ai-error-assistant-pro.common.js.map +1 -1
- package/dist/ai-error-assistant-pro.css +1 -1
- package/dist/ai-error-assistant-pro.umd.js +19 -17
- package/dist/ai-error-assistant-pro.umd.js.map +1 -1
- package/dist/ai-error-assistant-pro.umd.min.js +2 -2
- package/dist/ai-error-assistant-pro.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -97,17 +97,18 @@ export default {
|
|
|
97
97
|
avatarUrl: '',
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
|
-
|
|
100
|
+
mounted() {
|
|
101
101
|
if (!Cookies.get("token")) {
|
|
102
102
|
return this.$message.warning('未获取到登录信息,请重新登录');
|
|
103
103
|
}
|
|
104
|
-
getUserInfo(Cookies.get("token"), this.businessSource)
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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=
|
|
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,7 +6646,7 @@ var staticRenderFns = [function () {
|
|
|
6646
6646
|
}, [_vm._v("智能解析")])]);
|
|
6647
6647
|
}];
|
|
6648
6648
|
|
|
6649
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=
|
|
6649
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=039c1a7e&scoped=true
|
|
6650
6650
|
|
|
6651
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
6652
|
var chatvue_type_template_id_25a39a99_scoped_true_render = function render() {
|
|
@@ -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() {
|
|
@@ -14799,20 +14800,21 @@ var api = init(defaultConverter, { path: '/' });
|
|
|
14799
14800
|
avatarUrl: ''
|
|
14800
14801
|
};
|
|
14801
14802
|
},
|
|
14802
|
-
|
|
14803
|
+
mounted() {
|
|
14803
14804
|
if (!api.get("token")) {
|
|
14804
14805
|
return this.$message.warning('未获取到登录信息,请重新登录');
|
|
14805
14806
|
}
|
|
14806
|
-
getUserInfo(api.get("token"), this.businessSource)
|
|
14807
|
-
|
|
14808
|
-
|
|
14809
|
-
|
|
14810
|
-
|
|
14811
|
-
|
|
14812
|
-
|
|
14813
|
-
|
|
14814
|
-
|
|
14815
|
-
|
|
14807
|
+
getUserInfo(api.get("token"), this.businessSource, async () => {
|
|
14808
|
+
const wordRes = await queryCallWord(this.resId);
|
|
14809
|
+
if (!wordRes) return;
|
|
14810
|
+
const {
|
|
14811
|
+
showMoreQA,
|
|
14812
|
+
isShowFile
|
|
14813
|
+
} = wordRes;
|
|
14814
|
+
this.showMoreQA = showMoreQA;
|
|
14815
|
+
this.showFile = !!isShowFile;
|
|
14816
|
+
this.avatarUrl = cache.session.getJSON('USER_AVATAR_URL');
|
|
14817
|
+
});
|
|
14816
14818
|
},
|
|
14817
14819
|
methods: {
|
|
14818
14820
|
closeMessage() {
|
|
@@ -14865,10 +14867,10 @@ var api = init(defaultConverter, { path: '/' });
|
|
|
14865
14867
|
});
|
|
14866
14868
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
|
|
14867
14869
|
/* 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=
|
|
14870
|
+
;// 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
14871
|
// extracted by mini-css-extract-plugin
|
|
14870
14872
|
|
|
14871
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=
|
|
14873
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=039c1a7e&prod&lang=scss&scoped=true
|
|
14872
14874
|
|
|
14873
14875
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue
|
|
14874
14876
|
|
|
@@ -14885,7 +14887,7 @@ var main_component = normalizeComponent(
|
|
|
14885
14887
|
staticRenderFns,
|
|
14886
14888
|
false,
|
|
14887
14889
|
null,
|
|
14888
|
-
"
|
|
14890
|
+
"039c1a7e",
|
|
14889
14891
|
null
|
|
14890
14892
|
|
|
14891
14893
|
)
|