mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 06:20:50 +00:00
improve: 生成页面页面切换刷新
This commit is contained in:
parent
5bc849d9c0
commit
e6d689b9b9
@ -65,6 +65,10 @@ export default {
|
||||
return this.isMobile ? 'top' : 'left';
|
||||
},
|
||||
},
|
||||
beforeRouteUpdate(to, from, next) {
|
||||
this.getCrudApi(to.params.table_name);
|
||||
next();
|
||||
},
|
||||
created() {
|
||||
this.getCrudApi(this.$route.params.table_name);
|
||||
},
|
||||
|
||||
@ -22,7 +22,7 @@ export default {
|
||||
name: `${pre}crud`,
|
||||
},
|
||||
meta: {
|
||||
auth: ['admin-crud'],
|
||||
auth: true,
|
||||
},
|
||||
component: LayoutMain,
|
||||
children: [
|
||||
@ -30,7 +30,7 @@ export default {
|
||||
path: ':table_name',
|
||||
name: `${pre}crud`,
|
||||
meta: {
|
||||
auth: ['admin-crund-index'],
|
||||
auth: true,
|
||||
title: '增删改查',
|
||||
},
|
||||
component: () => import('@/pages/crud/index'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user