diff --git a/index.html b/index.html index cc72f2b30321e4602fe2388100a723fbc2afa170..8e71da599aa4f3d1b5a0df76a30e8d5fcba9893b 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - 大虎支付:专业的支付解决方案 + flyray:演示 diff --git a/src/views/layout/Layout.vue b/src/views/layout/Layout.vue index 7c824531d48b32757134dd405590e2dd0a2156e0..ec1734b576ae1c6c8852bda20576ab5d2149e8a6 100644 --- a/src/views/layout/Layout.vue +++ b/src/views/layout/Layout.vue @@ -2,7 +2,7 @@
- +
@@ -24,6 +24,11 @@ export default { sidebar() { return this.$store.state.app.sidebar } + }, + methods: { + upHandleMessage() { + console.log('ok') + } } } diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue index 8a7b31e83814004c02af589c7889a2586ff09baa..ffbff49fbfeff4da26c6e96a4bffe09dd85c5d28 100644 --- a/src/views/layout/components/Navbar.vue +++ b/src/views/layout/components/Navbar.vue @@ -3,7 +3,7 @@ - +
@@ -83,6 +83,9 @@ export default { ]) }, methods: { + handleMessage() { + this.$emit('upHandleMessage', 'I am a value from the child class.') + }, toggleSideBar() { this.$store.dispatch('toggleSideBar') this.$store.dispatch('setCollapse') diff --git a/src/views/layout/components/TopMenu.vue b/src/views/layout/components/TopMenu.vue index 8a96f0752304e70f8332bc14d298d5312c0a0e83..06a64ee62996dd6426d3b3e3a7dec996d74ae6bc 100644 --- a/src/views/layout/components/TopMenu.vue +++ b/src/views/layout/components/TopMenu.vue @@ -76,6 +76,7 @@ export default { }, methods: { openMenu(item) { + this.$emit('upParamsFun', 'I am a value from the child class.') this.$router.push({ path: resolveUrlPath(item.href, item.label) })