n20-common-lib 2.11.19 → 2.11.21

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": "n20-common-lib",
3
- "version": "2.11.19",
3
+ "version": "2.11.21",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -56,6 +56,10 @@ export default {
56
56
  Dialog
57
57
  },
58
58
  props: {
59
+ apiPrefix: {
60
+ type: String,
61
+ default: undefined
62
+ },
59
63
  visible: {
60
64
  type: Boolean,
61
65
  default: false
@@ -123,7 +127,7 @@ export default {
123
127
  },
124
128
  async getFileInfo(id) {
125
129
  const response = await this.$axios.post(
126
- '/api/neams/eamsbaserecord/downloadFile',
130
+ this.apiPrefix ? this.apiPrefix + '/neams/eamsbaserecord/downloadFile' : '/neams/eamsbaserecord/downloadFile',
127
131
  { beid: id },
128
132
  { responseType: 'blob', loading: false }
129
133
  )