@qywh/package 0.0.3-beta09 → 0.0.3-beta11

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": "@qywh/package",
3
- "version": "0.0.3-beta09",
3
+ "version": "0.0.3-beta11",
4
4
  "description": "钦煜文化低代码可视化组件库",
5
5
  "main": "index.ts",
6
6
  "typings": "typings/index.d.ts",
@@ -28,7 +28,7 @@
28
28
 
29
29
  <script lang="ts">
30
30
  import { Component, Vue, Prop } from 'vue-property-decorator'
31
- import request from '../../../lib/request'
31
+ import { service } from '../../../lib/request'
32
32
  import { getUrlParams } from '../../../lib/methods/jump'
33
33
 
34
34
  @Component
@@ -39,7 +39,7 @@ export default class QyOutSuccessWechatDiversion extends Vue {
39
39
  error = ''
40
40
 
41
41
  get isEdit () {
42
- return (this as any).$attrs?.isEdit === true || location.href.includes('workbench')
42
+ return (this as any).$attrs?.isEdit === true
43
43
  }
44
44
 
45
45
  mounted () {
@@ -51,18 +51,18 @@ export default class QyOutSuccessWechatDiversion extends Vue {
51
51
  async fetchQrCode () {
52
52
  if (this.isEdit) return
53
53
 
54
- const { orderId, userId } = getUrlParams()
55
- if (!orderId || !userId) {
54
+ const { orderNo } = getUrlParams()
55
+ if (!orderNo) {
56
56
  this.error = '缺少订单参数'
57
57
  return
58
58
  }
59
59
 
60
+ this.error = ''
60
61
  for (let i = 0; i < 5; i++) {
61
62
  try {
62
- this.error = ''
63
- const res: any = await request.get('/wxwork/user/getOrderQrCode', { orderId, userId })
64
- if (res && res.qrCode) {
65
- this.qrcode = res.qrCode
63
+ const res: any = await service.get('/wxwork/user/getOrderQrCode', { params: { orderNo } })
64
+ if (res && res.data && res.data.qrCode) {
65
+ this.qrcode = res.data.qrCode
66
66
  return
67
67
  }
68
68
  } catch (e) {