@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/dist/app-manager-vue.esm.js +11 -4
- package/dist/app-manager-vue.min.js +1 -1
- package/dist/app-manager-vue.ssr.js +13 -6
- package/dist/hulkapps-app-manager.css +1 -1
- package/dist/hulkapps-app-manager.min.css +1 -1
- package/package.json +1 -1
- package/src/components/Plans/AppManagerSliderPlan.vue +7 -3
package/package.json
CHANGED
|
@@ -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
|
-
|
|
366
|
-
|
|
367
|
-
|
|
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() {
|