1 line
3.8 KiB
JSON
1 line
3.8 KiB
JSON
|
{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\layout\\components\\Sidebar\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\layout\\components\\Sidebar\\index.vue","mtime":1718070786026},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1718764959024},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1718764959862}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQppbXBvcnQgeyBtYXBHZXR0ZXJzIH0gZnJvbSAndnVleCcNCmltcG9ydCBMb2dvIGZyb20gJy4vTG9nbycNCmltcG9ydCBTaWRlYmFySXRlbSBmcm9tICcuL1NpZGViYXJJdGVtJw0KaW1wb3J0IHZhcmlhYmxlcyBmcm9tICdAL3N0eWxlcy92YXJpYWJsZXMuc2NzcycNCg0KZXhwb3J0IGRlZmF1bHQgew0KICBjb21wb25lbnRzOiB7IFNpZGViYXJJdGVtLCBMb2dvIH0sDQogIGNvbXB1dGVkOiB7DQogICAgLi4ubWFwR2V0dGVycyhbDQogICAgICAncGVybWlzc2lvbl9yb3V0ZXMnLA0KICAgICAgJ3NpZGViYXInDQogICAgXSksDQogICAgYWN0aXZlTWVudSgpIHsNCiAgICAgIGNvbnN0IHJvdXRlID0gdGhpcy4kcm91dGUNCiAgICAgIGNvbnN0IHsgbWV0YSwgcGF0aCB9ID0gcm91dGUNCiAgICAgIC8vIGlmIHNldCBwYXRoLCB0aGUgc2lkZWJhciB3aWxsIGhpZ2hsaWdodCB0aGUgcGF0aCB5b3Ugc2V0DQogICAgICBpZiAobWV0YS5hY3RpdmVNZW51KSB7DQogICAgICAgIHJldHVybiBtZXRhLmFjdGl2ZU1lbnUNCiAgICAgIH0NCiAgICAgIHJldHVybiBwYXRoDQogICAgfSwNCiAgICBzaG93TG9nbygpIHsNCiAgICAgIHJldHVybiB0aGlzLiRzdG9yZS5zdGF0ZS5zZXR0aW5ncy5zaWRlYmFyTG9nbw0KICAgIH0sDQogICAgdmFyaWFibGVzKCkgew0KICAgICAgcmV0dXJuIHZhcmlhYmxlcw0KICAgIH0sDQogICAgaXNDb2xsYXBzZSgpIHsNCiAgICAgIHJldHVybiAhdGhpcy5zaWRlYmFyLm9wZW5lZA0KICAgIH0NCiAgfQ0KfQ0K"},{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/layout/components/Sidebar","sourcesContent":["<template>\r\n <div :class=\"{'has-logo':showLogo}\">\r\n <logo v-if=\"showLogo\" :collapse=\"isCollapse\" />\r\n <el-scrollbar wrap-class=\"scrollbar-wrapper\">\r\n <el-menu\r\n :default-active=\"activeMenu\"\r\n :collapse=\"isCollapse\"\r\n :background-color=\"variables.menuBg\"\r\n :text-color=\"variables.menuText\"\r\n :unique-opened=\"false\"\r\n :active-text-color=\"variables.menuActiveText\"\r\n :collapse-transition=\"false\"\r\n mode=\"vertical\"\r\n >\r\n <sidebar-item v-for=\"route in permission_routes\" :key=\"route.path\" :item=\"route\" :base-path=\"route.path\" />\r\n </el-menu>\r\n </el-scrollbar>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { mapGetters } from 'vuex'\r\nimport Logo from './Logo'\r\nimport SidebarItem from './SidebarItem'\r\nimport variables from '@/styles/variables.scss'\r\n\r\nexport default {\r\n components: { SidebarItem, Logo },\r\n computed: {\r\n ...mapGetters([\r\n 'permission_routes',\r\n 'sidebar'\r\n ]),\r\n activeMenu() {\r\n const route = this.$route\r\n const { meta, path } = route\r\n // if set path, the sidebar will highlight the path you set\r\n if (meta.activeMenu) {\r\n return meta.activeMenu\r\n }\r\n return path\r\n },\r\n showLogo() {\r\n return this.$store.state.settings.sidebarLogo\r\n },\r\n variables() {\r\n return variables\r\n },\r\n isCollapse() {\r\n return !this.sidebar.opened\r\n }\r\n }\r\n}\r\n</script>\r\n"]}]}
|