构建版本修改
This commit is contained in:
		
							
								
								
									
										35
									
								
								packages/core/AppAccountRole/AppAccountRole.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								packages/core/AppAccountRole/AppAccountRole.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| <template> | ||||
|   <section class="AppAccountRole"> | ||||
|     <add-account-role v-if="showDetail"/> | ||||
|     <account-role-list v-else/> | ||||
|   </section> | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
| import AddAccountRole from "./addAccountRole"; | ||||
| import AccountRoleList from "./accountRoleList"; | ||||
|  | ||||
| export default { | ||||
|   name: "AppAccountRole", | ||||
|   label: "账号角色管理", | ||||
|   props: { | ||||
|     instance: Function | ||||
|   }, | ||||
|   components: {AccountRoleList, AddAccountRole}, | ||||
|   computed: { | ||||
|     showDetail() { | ||||
|       return this.$route.hash == "#add" | ||||
|     } | ||||
|   }, | ||||
|   provide() { | ||||
|     let {instance} = this | ||||
|     return {instance} | ||||
|   } | ||||
| } | ||||
| </script> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
| .AppAccountRole { | ||||
|   height: 100%; | ||||
| } | ||||
| </style> | ||||
		Reference in New Issue
	
	Block a user