@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/README.md +4 -1
- 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/AppManagerGroupPlan.vue +7 -3
package/package.json
CHANGED
|
@@ -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
|
-
|
|
372
|
-
|
|
373
|
-
|
|
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() {
|