#父路由页面#
<template>
<div style="height: 100%">
<!-- 路由占位符 -->
<router-view @update="getRightList()" />
</div>
</template>
<script>
export default {
name: "Home",
data() {
return {
}
},
methods: {
// 获取权限数据
getRightList(data) {
console.log("45465456");
},
},
}
<script>
#子路由页面#
let _that = this;
_that.$emit("update");