Browse Source

添加前缀

master
hongxilin 4 months ago
parent
commit
0f3a1a86e6
  1. 34
      vue/gold-system/src/router/index.js

34
vue/gold-system/src/router/index.js

@ -3,41 +3,41 @@ import { createRouter,createWebHashHistory } from 'vue-router';
const router=createRouter({
history:createWebHashHistory(),
routes:[
{path:'/login', name:"login", component:()=>import("../views/login.vue")},
{path:'/',redirect:"/login"},
{path:'/test',component:()=>import("../views/z.vue")},
{path:'/jtzy/Product/other/test/hwjb/login', name:"login", component:()=>import("../views/login.vue")},
{path:'/jtzy/Product/other/test/hwjb/',redirect:"/login"},
{path:'/jtzy/Product/other/test/hwjb/test',component:()=>import("../views/z.vue")},
{
meta:{requireAuth:true},
path:'/index',component:()=>import("../views/index.vue"),
path:'/jtzy/Product/other/test/hwjb/index',component:()=>import("../views/index.vue"),
children:[
// 工作台
{path:'/workspace',component:()=>import("../views/workspace/index.vue")},
{path:'/jtzy/Product/other/test/hwjb/workspace',component:()=>import("../views/workspace/index.vue")},
// 充值审核
{path:'/rechargeAudit',component:()=>import("../views/audit/rechargeAudit.vue")},
{path:'/jtzy/Product/other/test/hwjb/rechargeAudit',component:()=>import("../views/audit/rechargeAudit.vue")},
// 退款审核
{path:'/refundAudit',component:()=>import("../views/audit/refundAudit.vue")},
{path:'/jtzy/Product/other/test/hwjb/refundAudit',component:()=>import("../views/audit/refundAudit.vue")},
// 新增消费
{path:'/addConsume',component:()=>import("../views/consume/addConsume.vue")},
{path:'/jtzy/Product/other/test/hwjb/addConsume',component:()=>import("../views/consume/addConsume.vue")},
// 所有消费明细
{path:'/allConsume',component:()=>import("../views/consume/allConsume.vue")},
{path:'/jtzy/Product/other/test/hwjb/allConsume',component:()=>import("../views/consume/allConsume.vue")},
// 活动管理
{path:'/activity',component:()=>import("../views/managerecharge/activity.vue")},
{path:'/jtzy/Product/other/test/hwjb/activity',component:()=>import("../views/managerecharge/activity.vue")},
// 汇率管理
{path:'/rate',component:()=>import("../views/managerecharge/rate.vue")},
{path:'/jtzy/Product/other/test/hwjb/rate',component:()=>import("../views/managerecharge/rate.vue")},
// 新增充值
{path:'/addRecharge',component:()=>import("../views/recharge/addRecharge.vue")},
// 客户充值明细
{path:'/adminRecharge',component:()=>import("../views/recharge/adminRecharge.vue")},
{path:'/jtzy/Product/other/test/hwjb/adminRecharge',component:()=>import("../views/recharge/adminRecharge.vue")},
// 所有充值明细
{path:'/allRecharge',component:()=>import("../views/recharge/allRecharge.vue")},
{path:'/jtzy/Product/other/test/hwjb/allRecharge',component:()=>import("../views/recharge/allRecharge.vue")},
// 新增退款
{path:'/addRefund',component:()=>import("../views/refund/addRefund.vue")},
{path:'/jtzy/Product/other/test/hwjb/addRefund',component:()=>import("../views/refund/addRefund.vue")},
// 退款明细
{path:'/allRefund',component:()=>import("../views/refund/allRefund.vue")},
{path:'/jtzy/Product/other/test/hwjb/allRefund',component:()=>import("../views/refund/allRefund.vue")},
// 客户金币明细
{path:'/usergold',component:()=>import("../views/usergold/index.vue")},
{path:'/jtzy/Product/other/test/hwjb/usergold',component:()=>import("../views/usergold/index.vue")},
// 客户金币余额
{path:'/usergoldInfo',component:()=>import("../views/usergoldInfo/index.vue")},
{path:'/jtzy/Product/other/test/hwjb/usergoldInfo',component:()=>import("../views/usergoldInfo/index.vue")},
]
},

Loading…
Cancel
Save