Browse Source

优化

master
陈裕财 4 years ago
parent
commit
b36384a339
  1. 11
      src/components/ModulesMenu/allMenus.vue

11
src/components/ModulesMenu/allMenus.vue

@ -149,8 +149,15 @@ export default {
goBuy(item) { goBuy(item) {
this.visible = false; this.visible = false;
//
this.$router.push({path:'/my/order/index',query:{moduleId:item.id}})
if(process.env.CONTEXT=='sys'){
//
this.$router.push({path:'/my/order/index',query:{moduleId:item.id}})
}else{
var fullpath=config.getBaseDomainUrl()+"/sys/"+process.env.VERSION+"/#/my/order/index?moduleId="+item.id
window.open(fullpath);
NProgress.done() // if current page is login will not trigger afterEach hook, so manually handle it
}
}, },
// //

Loading…
Cancel
Save