@hulkapps/app-manager-vue 2.2.2 → 2.2.3

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.2",
3
+ "version": "2.2.3",
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",
@@ -362,9 +362,13 @@
362
362
  const response = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/plan/process/${plan.id}?shop=${shopName}`).catch(error => {
363
363
  console.error(error)
364
364
  });
365
- let redirectUrl = response.data.redirect_url;
366
- if (redirectUrl) {
367
- window.top.location.href = redirectUrl;
365
+ if(response.data.plan_type === 'free_plan'){
366
+ this.$emit('handlePlanSelect', {free_plan: true})
367
+ }else{
368
+ let redirectUrl = response.data.redirect_url;
369
+ if (redirectUrl) {
370
+ window.top.location.href = redirectUrl;
371
+ }
368
372
  }
369
373
  },
370
374
  async activePlan() {