forked from zhurui/management
1 line
3.0 KiB
JSON
1 line
3.0 KiB
JSON
|
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\main-sidebar-sub-menu.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\main-sidebar-sub-menu.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport SubMenu from './main-sidebar-sub-menu'\nexport default {\n name: 'sub-menu',\n props: {\n menu: {\n type: Object,\n required: true\n }\n },\n components: {\n SubMenu\n },\n methods: {\n // 通过menuId与动态(菜单)路由进行匹配跳转至指定路由\n gotoRouteHandle (menuId) {\n var route = window.SITE_CONFIG['dynamicMenuRoutes'].filter(item => item.meta.menuId === menuId)[0]\n if (route) {\n this.$router.push({ name: route.name })\n }\n }\n }\n}\n",{"version":3,"sources":["main-sidebar-sub-menu.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"main-sidebar-sub-menu.vue","sourceRoot":"src/views","sourcesContent":["<template>\n <el-submenu v-if=\"menu.children && menu.children.length >= 1\" :index=\"menu.id\" :popper-append-to-body=\"false\">\n <template slot=\"title\">\n <svg class=\"icon-svg aui-sidebar__menu-icon\" aria-hidden=\"true\"><use :xlink:href=\"`#${menu.icon}`\"></use></svg>\n <span>{{ menu.name }}</span>\n </template>\n <sub-menu v-for=\"item in menu.children\" :key=\"item.id\" :menu=\"item\"></sub-menu>\n </el-submenu>\n <el-menu-item v-else :index=\"menu.id\" @click=\"gotoRouteHandle(menu.id)\">\n <svg class=\"icon-svg aui-sidebar__menu-icon\" aria-hidden=\"true\"><use :xlink:href=\"`#${menu.icon}`\"></use></svg>\n <span>{{ menu.name }}</span>\n </el-menu-item>\n</template>\n\n<script>\nimport SubMenu from './main-sidebar-sub-menu'\nexport default {\n name: 'sub-menu',\n props: {\n menu: {\n type: Object,\n required: true\n }\n },\n components: {\n SubMenu\n },\n methods: {\n // 通过menuId与动态(菜单)路由进行匹配跳转至指定路由\n gotoRouteHandle (menuId) {\n var route = window.SITE_CONFIG['dynamicMenuRoutes'].filter(item => item.meta.menuId === menuId)[0]\n if (route) {\n this.$router.push({ name: route.name })\n }\n }\n }\n}\n</script>\n"]}]}
|