diff --git a/src/views/UserPage/=.svg b/src/views/UserPage/=.svg new file mode 100644 index 0000000..7e816f6 --- /dev/null +++ b/src/views/UserPage/=.svg @@ -0,0 +1,14 @@ + + + 菜单 + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/UserPage/TestMenuItem.vue b/src/views/UserPage/TestMenuItem.vue index 5df477e..56f1c70 100644 --- a/src/views/UserPage/TestMenuItem.vue +++ b/src/views/UserPage/TestMenuItem.vue @@ -1,22 +1,101 @@ @@ -25,12 +104,12 @@ export default { name: 'TestMenuItem', props: { level: { - type: String, + type: Number, default: 1 }, index: { - type: Number, - default: 0 + type: String, + default: '' }, menuItem: { default: () => ({}) @@ -45,7 +124,11 @@ export default { }, created() {}, mounted() {}, - methods: {} + methods: { + constructIndex(menuItem) { + return menuItem.id + '$--$' + menuItem.name + } + } } diff --git a/src/views/UserPage/TestTree.vue b/src/views/UserPage/TestTree.vue index 2cb9f40..b0ee9e3 100644 --- a/src/views/UserPage/TestTree.vue +++ b/src/views/UserPage/TestTree.vue @@ -27,10 +27,11 @@ 合肥新能源工厂 -
- -