@hulkapps/app-manager-vue 2.2.0 → 2.2.2

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": "@hulkapps/app-manager-vue",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Vue SDK to render app manager contents",
5
5
  "main": "dist/app-manager-vue.ssr.js",
6
6
  "browser": "dist/app-manager-vue.esm.js",
@@ -368,9 +368,13 @@
368
368
  const response = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/plan/process/${plan.id}?shop=${shopName}`).catch(error => {
369
369
  console.error(error)
370
370
  });
371
- let redirectUrl = response.data.redirect_url;
372
- if (redirectUrl) {
373
- window.top.location.href = redirectUrl;
371
+ if(response.data.plan_type === 'free_plan'){
372
+ this.$emit('handlePlanSelect', {free_plan: true})
373
+ }else{
374
+ let redirectUrl = response.data.redirect_url;
375
+ if (redirectUrl) {
376
+ window.top.location.href = redirectUrl;
377
+ }
374
378
  }
375
379
  },
376
380
  async activePlan() {