meixioacomponent 0.2.42 → 0.2.43

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.
@@ -120866,11 +120866,15 @@ var componentConfig = {
120866
120866
  store: null,
120867
120867
  router: null,
120868
120868
  dynamicId: 0,
120869
+ uploadUrl: null,
120869
120870
  eventBus: new external_commonjs_vue_commonjs2_vue_root_Vue_default.a(),
120870
120871
  selectStore: null,
120871
120872
  setDynamicId: function setDynamicId() {
120872
120873
  componentConfig.dynamicId += 1;
120873
120874
  },
120875
+ setUploadUrl: function setUploadUrl(url) {
120876
+ componentConfig.uploadUrl = url;
120877
+ },
120874
120878
  initConfig: function initConfig(_store, _router) {
120875
120879
  // 注册element 组件
120876
120880
  useElement_useElementComponent(); // 动态注册vuex modules
@@ -123561,11 +123565,12 @@ var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
123561
123565
 
123562
123566
 
123563
123567
 
123568
+
123564
123569
  var uploadRequest_ossInstance = function ossInstance(params, uploadProgressFn) {
123565
123570
  // 创建 axios 实例
123566
123571
  var instance = axios_default.a.create({
123567
123572
  // API 请求的默认前缀
123568
- baseURL: Object({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_UPLOAD_URL
123573
+ baseURL: config_componentConfig.uploadUrl
123569
123574
  }); // 异常拦截处理器
123570
123575
 
123571
123576
  var errorHandler = function errorHandler(error) {
@@ -120875,11 +120875,15 @@ var componentConfig = {
120875
120875
  store: null,
120876
120876
  router: null,
120877
120877
  dynamicId: 0,
120878
+ uploadUrl: null,
120878
120879
  eventBus: new external_commonjs_vue_commonjs2_vue_root_Vue_default.a(),
120879
120880
  selectStore: null,
120880
120881
  setDynamicId: function setDynamicId() {
120881
120882
  componentConfig.dynamicId += 1;
120882
120883
  },
120884
+ setUploadUrl: function setUploadUrl(url) {
120885
+ componentConfig.uploadUrl = url;
120886
+ },
120883
120887
  initConfig: function initConfig(_store, _router) {
120884
120888
  // 注册element 组件
120885
120889
  useElement_useElementComponent(); // 动态注册vuex modules
@@ -123570,11 +123574,12 @@ var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
123570
123574
 
123571
123575
 
123572
123576
 
123577
+
123573
123578
  var uploadRequest_ossInstance = function ossInstance(params, uploadProgressFn) {
123574
123579
  // 创建 axios 实例
123575
123580
  var instance = axios_default.a.create({
123576
123581
  // API 请求的默认前缀
123577
- baseURL: Object({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_UPLOAD_URL
123582
+ baseURL: config_componentConfig.uploadUrl
123578
123583
  }); // 异常拦截处理器
123579
123584
 
123580
123585
  var errorHandler = function errorHandler(error) {