@cortezaproject/corteza-vue 2022.9.0 → 2022.9.1
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/dist/index.es.js +8 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins/settings.d.ts +7 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -2641,6 +2641,13 @@ class Settings {
|
|
|
2641
2641
|
const v = s[k[k.length - 1]];
|
|
2642
2642
|
return v !== undefined ? v : d;
|
|
2643
2643
|
}
|
|
2644
|
+
/**
|
|
2645
|
+
* Provides the attachment for the given resource
|
|
2646
|
+
* @param {String} k Setting key
|
|
2647
|
+
* @param {*} d Default value
|
|
2648
|
+
* @returns {*}
|
|
2649
|
+
*/
|
|
2650
|
+
|
|
2644
2651
|
|
|
2645
2652
|
attachment(k, d) {
|
|
2646
2653
|
const src = this.get(k, d);
|
|
@@ -2655,8 +2662,7 @@ class Settings {
|
|
|
2655
2662
|
}
|
|
2656
2663
|
|
|
2657
2664
|
if (src) {
|
|
2658
|
-
|
|
2659
|
-
return this.api.baseURL.replace(/\/api\/system$/, '') + src;
|
|
2665
|
+
return this.api.baseURL.replace(/\/system$/, '').replace(/\/api$/, '') + src;
|
|
2660
2666
|
}
|
|
2661
2667
|
|
|
2662
2668
|
return d;
|