askbot-dragon 1.7.28-beta → 1.7.31-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.7.28-beta",
3
+ "version": "1.7.31-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -28,12 +28,10 @@
28
28
  "babel-eslint": "^10.1.0",
29
29
  "element-ui": "^2.15.10",
30
30
  "eslint": "^6.7.2",
31
- "vue-markdown": "^2.2.4",
32
31
  "eslint-plugin-vue": "^6.2.2",
33
32
  "less": "^3.12.2",
34
33
  "less-loader": "^7.0.2",
35
- "vue-template-compiler": "^2.6.11",
36
- "vue-i18n": "^8.26.4"
34
+ "vue-template-compiler": "^2.6.11"
37
35
  },
38
36
  "eslintConfig": {
39
37
  "root": true,
@@ -4,27 +4,7 @@
4
4
 
5
5
  const OSS = window.OSS
6
6
 
7
- const getPrivateOssConfig = () =>{
8
- let mainSource = sessionStorage.getItem('_mainSource') ? sessionStorage.getItem('_mainSource') : "askbot";
9
- switch (mainSource) {
10
- case "askbot":
11
- return {
12
- region: "oss-cn-zhangjiakou",
13
- accessKeyId: "LTAI4G3QtdEdwkEbihBngAsK",
14
- accessKeySecret: "OwgdVfc5PeCkIgqIdug660xmiSPchn",
15
- bucket: "guoranopen-zjk",
16
- }
17
- case "lishi":
18
- return {
19
- region: "oss-ap-southeast-1",
20
- accessKeyId: "LTAI5tAusPLDNJJwkvUbqi2T",
21
- accessKeySecret: "xqPVaunOIbvTe3g9qsXal2IZO6RftK",
22
- bucket: "askbotopen-ls",
23
- };
24
- }
25
- }
26
-
27
- const ossConfig = {
7
+ const ossConfig={
28
8
  region: "oss-cn-zhangjiakou",
29
9
  //云账号AccessKey有所有API访问权限,建议遵循阿里云安全最佳实践,创建并使用STS方式来进行API访问
30
10
  accessKeyId: "LTAI4G3QtdEdwkEbihBngAsK",
@@ -33,8 +13,6 @@ const ossConfig = {
33
13
  bucket: "guoranopen-zjk",
34
14
  };
35
15
 
36
-
37
-
38
16
  let IDX = 256, HEX = [], SIZE = 256, BUFFER;
39
17
  while (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1);
40
18
  let mainId = sessionStorage.getItem('_mainId') ? sessionStorage.getItem('_mainId') : "";
@@ -70,8 +48,8 @@ function pathGenerate(filename) {
70
48
  }
71
49
 
72
50
 
73
- async function upload(data) {
74
- let ossClient = new OSS(getPrivateOssConfig());
51
+ async function upload(ossConfig, data) {
52
+ let ossClient = new OSS(ossConfig);
75
53
  // object-key可以自定义为文件名(例如file.txt)或目录(例如abc/test/file.txt)的形式,实现将文件上传至当前Bucket或Bucket下的指定目录。
76
54
  let objectKey = pathGenerate(data.name);
77
55
  let result = await ossClient.put(objectKey, data);
@@ -79,8 +57,8 @@ async function upload(data) {
79
57
  return result;
80
58
  }
81
59
 
82
- async function multipartUpload(data, callback,extCallback) {
83
- let ossClient = new OSS(getPrivateOssConfig());
60
+ async function multipartUpload(ossConfig, data, callback,extCallback) {
61
+ let ossClient = new OSS(ossConfig);
84
62
  // object-key可以自定义为文件名(例如file.txt)或目录(例如abc/test/file.txt)的形式,实现将文件上传至当前Bucket或Bucket下的指定目录。
85
63
  let objectKey = pathGenerate(data.name);
86
64
  let res = await ossClient.multipartUpload(objectKey, data, {
@@ -95,8 +73,7 @@ async function multipartUpload(data, callback,extCallback) {
95
73
  return res;
96
74
  }
97
75
 
98
- function ossFileUrl(path, cname) {
99
- let ossConfig = getPrivateOssConfig()
76
+ function ossFileUrl(ossConfig, path, cname) {
100
77
  if (cname == null) {
101
78
  return '//' + ossConfig.bucket + '.' + ossConfig.region + '.aliyuncs.com/' + path;
102
79
  } else {
@@ -104,8 +81,8 @@ function ossFileUrl(path, cname) {
104
81
  }
105
82
  }
106
83
 
107
- function uploadImageByBase64(blob) {
108
- let ossClient = new OSS(getPrivateOssConfig());
84
+ function uploadImageByBase64(ossConfig,blob) {
85
+ let ossClient = new OSS(ossConfig);
109
86
 
110
87
  // object-key可以自定义为文件名(例如file.txt)或目录(例如abc/test/file.txt)的形 式,实现将文件上传至当前Bucket或Bucket下的指定目录。
111
88
  let objectKey = pathGenerate(new Date().getTime());
@@ -114,4 +91,4 @@ function uploadImageByBase64(blob) {
114
91
  return result;
115
92
  }
116
93
 
117
- export {upload, multipartUpload, ossFileUrl,uploadImageByBase64,ossConfig, getPrivateOssConfig}
94
+ export {upload, multipartUpload, ossFileUrl,uploadImageByBase64,ossConfig}
@@ -16,22 +16,18 @@
16
16
  <template v-if="msg.content.renderType == 1">
17
17
  <p v-html="msg.content.text"></p>
18
18
  </template>
19
- <template v-if="msg.content.renderType == 2">
20
- <markDownText :chainValues="msg.content.text" :isHistory="isHistory"></markDownText>
21
- </template>
22
19
  <template v-else>{{ msg.content.text }}</template>
23
20
  </div>
24
21
  <div v-if="msg.content.images && msg.content.images.length != 0" class="answer-kn-image-box">
25
22
  <img v-for="(imageItem, imageItemIndex) in msg.content.images"
26
- style="max-width: 230px;border-radius: 25px;margin-bottom: 15px" :src="imageItem.url"
23
+ style="max-width: 230px;border-radius: 10px;margin-bottom: 15px" :src="imageItem.url"
27
24
  :key="imageItemIndex" alt @click="lookAttach(imageItem.url, imageItem, $event)" />
28
25
  </div>
29
26
  </div>
30
27
  <template v-if="!isLiBang">
31
28
  <div class="ad-list" :class="msg.content.type == 0 ? 'ad-list-recognition' : ''">
32
29
  <template v-if="msg.content.type == 1">
33
- <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
34
- :style="{ paddingBottom: itemIndex === msg.content.list.length - 1 ? 0 : '10px' }" class="ad-list-cell">
30
+ <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell">
35
31
  <div class="alc-title">
36
32
  <div class="alc-box">
37
33
  <div class="alc-source-left">
@@ -178,10 +174,9 @@
178
174
  /* eslint-disable */
179
175
  import previewPdf from "./previewPdf";
180
176
  import { isMobile } from "../assets/js/common";
181
- import markDownText from "./markDownText.vue";
182
177
  export default {
183
178
  name: "answerDocknowledge",
184
- components: { previewPdf, markDownText },
179
+ components: { previewPdf },
185
180
  data () {
186
181
  return {
187
182
  isPC: true,
@@ -268,14 +263,14 @@ export default {
268
263
  allKnowledgeList: [],
269
264
  loadMoreFlag: false,
270
265
  title: '',
271
- folderName: '',
272
- folderUrl: '',
266
+ folderName:'',
267
+ folderUrl:'',
273
268
  previewKnowledgeId: "",
274
269
  previewKnowledge: {},
275
270
  previewOssPath: ""
276
271
  }
277
272
  },
278
- props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","isHistory"],
273
+ props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang"],
279
274
  beforeMounted () {
280
275
  },
281
276
  watch: {
@@ -337,78 +332,78 @@ export default {
337
332
  //预览图片
338
333
  lookAttach (url, item, event) {
339
334
  // console.log(item.knowledgeId);
340
- // this.$http.get("/knowledge-api/internal/knowledgeBaseStructure/" + "642ffbccde420e2772f7787b")
341
- // debugger
342
- event.preventDefault();
343
- if (this.isAskLightning == 1 && !this.isApp) {
344
- window.parent.postMessage({
345
- data: "bot_preview",
346
- item: JSON.stringify(item),
347
- url: url
348
- }, "*");
349
- } else {
350
- // if (isMobile()) {
351
- // this.$refs.previewPdf.drawer = true;
352
- // this.$refs.previewPdf.previewShowPopup = false;
353
- // } else {
354
- // this.$refs.previewPdf.drawer = false;
355
- // }
356
- this.title = item.from || item.name
357
- this.folderName = item.folderName
335
+ // this.$http.get("/knowledge-api/internal/knowledgeBaseStructure/" + "642ffbccde420e2772f7787b")
336
+ // debugger
337
+ event.preventDefault();
338
+ if (this.isAskLightning == 1 && !this.isApp){
339
+ window.parent.postMessage({
340
+ data: "bot_preview",
341
+ item: JSON.stringify(item),
342
+ url: url
343
+ },"*");
344
+ } else {
345
+ // if (isMobile()) {
346
+ // this.$refs.previewPdf.drawer = true;
347
+ // this.$refs.previewPdf.previewShowPopup = false;
348
+ // } else {
349
+ // this.$refs.previewPdf.drawer = false;
350
+ // }
351
+ this.title = item.from || item.name
352
+ this.folderName = item.folderName
358
353
  this.folderUrl = item.folderUrl
359
354
  this.previewKnowledge = item;
360
- this.previewKnowledgeId = item.knowledgeId
361
- this.$refs.previewPdf.previewShowPopup = false;
362
- this.$refs.previewPdf.drawer = false;
363
- this.previewOssPath = url;
364
- let index = url.lastIndexOf('?')
365
- let type = ''
366
- let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
367
- if (index !== -1) {
368
- url = url.substring(0, index)
369
- type = this.fileType(url)
355
+ this.previewKnowledgeId = item.knowledgeId
356
+ this.$refs.previewPdf.previewShowPopup = false;
357
+ this.$refs.previewPdf.drawer = false;
358
+ this.previewOssPath = url;
359
+ let index = url.lastIndexOf('?')
360
+ let type = ''
361
+ let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
362
+ if (index !== -1) {
363
+ url = url.substring(0, index)
364
+ type = this.fileType(url)
365
+ } else {
366
+ type = this.fileType(url)
367
+ }
368
+ if (type === '' || type === 'OTHER') {
369
+ httpUrl = httpUrl += '?needEncrypt=true'
370
+ } else {
371
+ httpUrl = httpUrl += '?needEncrypt=false'
372
+ }
373
+ this.$http.post(httpUrl, {
374
+ "fileInOssPath":url
375
+ }).then(res =>{
376
+ if(res.data.code == '0') {
377
+ this.previewHref = res.data.data;
378
+ this.sourceFileType = url.substring(url.lastIndexOf('.'))
379
+ let isOhmPc = sessionStorage.getItem('isOhmPc')
380
+ if (isMobile() || isOhmPc == 'true'){
381
+ this.$refs.previewPdf.drawer = true;
382
+ this.$refs.previewPdf.previewShowPopup = true;
370
383
  } else {
371
- type = this.fileType(url)
384
+ this.$refs.previewPdf.previewShowPopup = false;
385
+ this.$refs.previewPdf.drawer = true;
372
386
  }
373
- if (type === '' || type === 'OTHER' || type == 'IMAGE') {
374
- httpUrl = httpUrl += '?needEncrypt=true'
387
+ //聊一聊按钮的选中状态
388
+ if (this.activeKnowledgeId == item.knowledgeId){
389
+ this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
375
390
  } else {
376
- httpUrl = httpUrl += '?needEncrypt=false'
391
+ this.$refs.previewPdf.previewKnowledgeId = ""
392
+ }
393
+ this.$refs.previewPdf.fileType = type
394
+ this.$refs.previewPdf.tagIds = item.tagIds
395
+ this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false ;
396
+ let index = url.indexOf("?");
397
+ let newFileInOssPath = url;
398
+ if (index !== -1){
399
+ newFileInOssPath = url.substring(0, url.indexOf("?"))
400
+ }
401
+ let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
402
+ if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt'|| fileName === '.html'){
403
+ this.$refs.previewPdf.fileName = fileName;
404
+ } else {
405
+ this.$refs.previewPdf.fileName = '';
377
406
  }
378
- this.$http.post(httpUrl, {
379
- "fileInOssPath": url
380
- }).then(res => {
381
- if (res.data.code == '0') {
382
- this.previewHref = res.data.data;
383
- this.sourceFileType = url.substring(url.lastIndexOf('.'))
384
- let isOhmPc = sessionStorage.getItem('isOhmPc')
385
- if (isMobile() || isOhmPc == 'true') {
386
- this.$refs.previewPdf.drawer = true;
387
- this.$refs.previewPdf.previewShowPopup = true;
388
- } else {
389
- this.$refs.previewPdf.previewShowPopup = false;
390
- this.$refs.previewPdf.drawer = true;
391
- }
392
- //聊一聊按钮的选中状态
393
- if (this.activeKnowledgeId == item.knowledgeId) {
394
- this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
395
- } else {
396
- this.$refs.previewPdf.previewKnowledgeId = ""
397
- }
398
- this.$refs.previewPdf.fileType = type
399
- this.$refs.previewPdf.tagIds = item.tagIds
400
- this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false;
401
- let index = url.indexOf("?");
402
- let newFileInOssPath = url;
403
- if (index !== -1) {
404
- newFileInOssPath = url.substring(0, url.indexOf("?"))
405
- }
406
- let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
407
- if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt' || fileName === '.html') {
408
- this.$refs.previewPdf.fileName = fileName;
409
- } else {
410
- this.$refs.previewPdf.fileName = '';
411
- }
412
407
  if (item.tagIds && item.tagIds.length != 0) {
413
408
  this.$refs.previewPdf.loading = false
414
409
  return
@@ -436,8 +431,6 @@ export default {
436
431
  return 'VIDEO'
437
432
  } else if (fileType === '.html') {
438
433
  return 'HTML'
439
- } else if (fileType === '.png' || fileType === '.jpg' || fileType === '.jpeg') {
440
- return 'IMAGE'
441
434
  } else {
442
435
  return 'OTHER'
443
436
  }
@@ -498,13 +491,13 @@ export default {
498
491
  recommendQues (item, knowledgeId) {
499
492
  this.$emit('recommendQues', item, knowledgeId)
500
493
  },
501
- clickFloder (item) {
494
+ clickFloder(item) {
502
495
  this.$emit('clickFloder', item)
503
496
  },
504
- previewClickFloder () {
497
+ previewClickFloder() {
505
498
  let item = null
506
499
  this.msg.content.list.forEach(element => {
507
- if (element.knowledgeId == this.previewKnowledgeId) {
500
+ if(element.knowledgeId == this.previewKnowledgeId) {
508
501
  item = element
509
502
  }
510
503
  });
@@ -648,25 +641,24 @@ export default {
648
641
 
649
642
  .alc-box-introduction-previewImage {
650
643
  width: 100%;
651
- display: block;
652
- overflow: hidden;
653
- text-overflow: ellipsis;
654
- display: -webkit-box;
655
- -webkit-line-clamp: 3;
656
- -webkit-box-orient: vertical;
657
- margin-top: 10px;
658
- color: #616161;
659
- // font-size: 12px;
660
- line-height: 24px;
661
- text-align: left;
662
-
663
- img {
664
- max-width: 300px;
665
- width: 100%;
666
- max-height: 150px;
667
- margin: 10px;
668
- cursor: pointer;
669
- }
644
+ display: block;
645
+ overflow: hidden;
646
+ text-overflow: ellipsis;
647
+ display: -webkit-box;
648
+ -webkit-line-clamp:3;
649
+ -webkit-box-orient:vertical;
650
+ margin-top: 10px;
651
+ color: #616161;
652
+ // font-size: 12px;
653
+ line-height: 24px;
654
+ text-align: left;
655
+ img {
656
+ max-width: 300px;
657
+ width: 100%;
658
+ max-height: 150px;
659
+ margin: 10px;
660
+ cursor: pointer;
661
+ }
670
662
  }
671
663
 
672
664
  .alc-updateTime {
@@ -1,6 +1,7 @@
1
1
  <!-- 消息记录容器 -->
2
2
  <template>
3
3
  <div id="conversation">
4
+ <qw-feedback :msg="qwFeedbackObj"></qw-feedback>
4
5
  <div v-for="(item, index) in processAction" :key="index">
5
6
  <association-intention :msg="item" :msgType="item.type" :isOpen="isOpen"></association-intention>
6
7
  </div>
@@ -37,7 +38,7 @@
37
38
  </div> -->
38
39
 
39
40
  <!-- <text-message :text="text" @submitClick="submitClick"></text-message> -->
40
- <answer-docknowledge :isAskLightning="2" :isHasChat="true" :msg="answerDocknowledge" :isLiBang="false"></answer-docknowledge>
41
+ <answer-docknowledge :isAskLightning="2" :msg="answerDocknowledge" :isLiBang="false"></answer-docknowledge>
41
42
  <welcomeSuggest :msg="welcomeSuggest"></welcomeSuggest>
42
43
  <!-- <voice-component @closeVoice="closeVoice">
43
44
  <div slot="voiceTip">
@@ -121,6 +122,7 @@ import AnswerDocknowledge from "./AnswerDocknowledge.vue";
121
122
  import WelcomeKnowledgeFile from "./welcomeKnowledgeFile";
122
123
  import WelcomeLlmCard from "./welcomeLlmCard";
123
124
  import welcomeSuggest from "./welcomeSuggest"
125
+ import QwFeedback from './QwFeedback';
124
126
  export default {
125
127
  name: 'ConversationContainer',
126
128
  components: {
@@ -150,7 +152,8 @@ export default {
150
152
  // ChatContent,
151
153
  AnswerDocknowledge,
152
154
  MyEditor,
153
- welcomeSuggest
155
+ welcomeSuggest,
156
+ QwFeedback
154
157
  },
155
158
  props: {
156
159
  messages: Array
@@ -240,7 +243,7 @@ export default {
240
243
  "content": {
241
244
  "images": [{ url: 'https://static.guoranbot.com/images/knowledge/e0f6898c6b0d47fa98e8f71ceab1bde8/安全标志--禁止标志.png' }],
242
245
  "actionType": "answer_doc_knowledge",
243
- "text": "**票据管理规定**\n\n### 车票报销\n- **注意事项**:\n - 车票需注意日期与行程相符。\n - 如所附车票没有标注起止地点的,需自行注明。\n - 非同一次乘车出现票号相连的,不予报销。\n\n### 不予报销的票据\n- **国内白条及非财政部门监制的收据**:一律不予报销。\n- **预存性质的票据**:如预存话费、预存公交车费、购物卡、油卡等,原则上不予报销。\n - 确有客观需求并经部门负责人、财务负责人事先同意的,预存时需获取预付款增值税普通发票。\n - 后续每次实际消费时需取得注明预付卡卡号的消费小票,并在消费完预付卡内余额后及时进行一次性报销。\n - 无法取得消费小票的,请及时与财务同事沟通与确认解决方案。\n\n### 发票要求\n- **字迹不清或压线错格**:应重新开票。\n- **无法取得发票的费用**:公司不予报销,不允许用其他发票替代报销。\n\n### 报销单整理\n- 报销单影像审批完成进入核票流程后,报销人应将该张报销单的票据按照时间顺序分类整理,平铺、整齐的粘贴在A4纸上,票据与票据之间不能重叠遮挡,与报销单一同交到财务部。\n- 驻外人员邮寄回公司本部门的内勤人员,由部门内勤人员代为转交至财务部。\n- 财务收到单据后在汇联易系统中进行核票,纸质票据影像必须与实物一致,符合标准的单据完成审批流程后,进入待付款流程。\n\n### 出差报销\n- 员工出差必须先填写出差申请单,经审批后才能出行。\n- 若有紧急出差的情况,应填写出差申请单后,联系上级领导人进行加急审批。\n- 未填出差申请单,自行购票出行,公司有权不予报销。",
246
+ "text": "中国的省份名称有湖北省、广西壮族自治区等。",
244
247
  "list": [
245
248
  {
246
249
  "owner": null,
@@ -319,9 +322,8 @@ export default {
319
322
  "previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
320
323
  }
321
324
  ],
322
- "renderType": 2,
323
- "type": 1,
324
- "isHistory": true
325
+ "renderType": 0,
326
+ "type": 1
325
327
  },
326
328
  "type": "answer_doc_knowledge"
327
329
  },
@@ -10661,6 +10663,15 @@ export default {
10661
10663
  }
10662
10664
  },
10663
10665
  answerRadios: { "content": { "options": [{ "scope": "KNOWLEDGE", "name": "本文提供了什么内容?", "value": "64915d6e098ec248701da267" }, { "scope": "KNOWLEDGE", "name": "什么是街舞穿搭指南?", "value": "64915d6e098ec248701da267" }, { "scope": "KNOWLEDGE", "name": "为什么街舞爱好者需要关注本文?", "value": "64915d6e098ec248701da267" }], "description": "了解更多", "isKnowledgeSummary": true }, "id": "knowledgeRecdNodeId", "type": "answer_radio", "sessionId": 1687251699065, "keyId": "139480f2-5af1-44fd-a7bd-a73dd7b566b7_________", "isKnowledgeSummary": true },
10666
+ qwFeedbackObj: {
10667
+ "content": {
10668
+ "guideText": "以下问题我已经学会了,感谢您提供的金点子,帮助我更好的成长:",
10669
+ "questionList": [
10670
+ "打印机卡纸怎么办", "打印机打印模糊", "SAP系统输入编码系统显示报错", "合同已经上传影像归档了,但是在CE中还是关联不到合同", "如何查询社保缴费基数", "如何查询公积金缴费基数"
10671
+ ]
10672
+ },
10673
+ "type": "unidentified_feedback"
10674
+ },
10664
10675
  answerRadiosPri: {
10665
10676
  "refAttrId": null,
10666
10677
  "createTime": null,
@@ -42,6 +42,14 @@ export default {
42
42
  props: ["value", "placeholder", "havToolbar"],
43
43
  data () {
44
44
  return {
45
+ ossConfig: {
46
+ region: "oss-cn-zhangjiakou",
47
+ //云账号AccessKey有所有API访问权限,建议遵循阿里云安全最佳实践,创建并使用STS方式来进行API访问
48
+ accessKeyId: "LTAI4G3QtdEdwkEbihBngAsK",
49
+ accessKeySecret: "OwgdVfc5PeCkIgqIdug660xmiSPchn",
50
+ // stsToken: '<Your securityToken(STS)>',
51
+ bucket: "guoranopen-zjk",
52
+ },
45
53
  ischecked: false,
46
54
  text: ''
47
55
  }
@@ -151,12 +159,13 @@ export default {
151
159
  url: '',
152
160
  }
153
161
  let res = multipartUpload(
162
+ this.ossConfig,
154
163
  file,
155
164
  null,
156
165
  imgInfo
157
166
  );
158
167
  res.then(resp => {
159
- imgInfo.url = ossFileUrl(resp.name)
168
+ imgInfo.url = ossFileUrl(this.ossConfig, resp.name)
160
169
  resolve({
161
170
  name: resp.name,
162
171
  default: imgInfo.url