doway-coms 1.4.40 → 1.4.41

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": "doway-coms",
3
- "version": "1.4.40",
3
+ "version": "1.4.41",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -49,6 +49,9 @@ export default {
49
49
  methods: {
50
50
  showPreview(url, data, isReplace, method, companyId) {
51
51
  this.isShow = true
52
+ if (!companyId) {
53
+ companyId = null
54
+ }
52
55
  if (method == 'post') {
53
56
  this.isShow = true
54
57
  this.$nextTick(() => {
@@ -68,8 +71,6 @@ export default {
68
71
  companyids.value = companyId
69
72
  formExport.target = 'printFrame'
70
73
  formExport.appendChild(companyids)
71
- } else {
72
- companyId = null
73
74
  }
74
75
  formExport.appendChild(inputValue)
75
76
  document.body.appendChild(formExport)