mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 18:06:44 +08:00
测试
This commit is contained in:
@@ -35,7 +35,7 @@ import portalFooter from "@/components/PortalFooter.vue";
|
||||
},
|
||||
methods:{
|
||||
handleMessageFromChild(event) {
|
||||
console.log('我进来了')
|
||||
console.log(event,'我进来了')
|
||||
if (event.origin !== this.url) return; // 验证来源以防跨站脚本攻击
|
||||
if (event.data && event.data.type === 'navigate') {
|
||||
this.navigate(event.data.path);
|
||||
|
||||
Reference in New Issue
Block a user