8098b85206ba4acaf19e7f1be4b60aed.json 4.2 KB

1
  1. {"remainingRequest":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/src/layout/components/Sidebar/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/src/layout/components/Sidebar/index.vue","mtime":1708395041882},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/cache-loader/dist/cjs.js","mtime":1708395146433},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/babel-loader/lib/index.js","mtime":1708395147257},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/cache-loader/dist/cjs.js","mtime":1708395146433},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/vue-loader/lib/index.js","mtime":1708395147382}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQppbXBvcnQgeyBtYXBHZXR0ZXJzIH0gZnJvbSAndnVleCcNCmltcG9ydCBMb2dvIGZyb20gJy4vTG9nbycNCmltcG9ydCBTaWRlYmFySXRlbSBmcm9tICcuL1NpZGViYXJJdGVtJw0KaW1wb3J0IHZhcmlhYmxlcyBmcm9tICdAL3N0eWxlcy92YXJpYWJsZXMuc2NzcycNCg0KZXhwb3J0IGRlZmF1bHQgew0KICBjb21wb25lbnRzOiB7IFNpZGViYXJJdGVtLCBMb2dvIH0sDQogIGNyZWF0ZWQoKXsgICAgDQogIH0sDQogIGNvbXB1dGVkOiB7DQogICAgLi4ubWFwR2V0dGVycyhbDQogICAgICAnc2lkZWJhcicsICAgICAgICAgIA0KICAgIF0pLCAgICANCiAgICByb3V0ZXMoKSB7ICAgICAgICAgICAgICAgICAgDQogICAgICByZXR1cm4gdGhpcy4kcm91dGVyLm9wdGlvbnMucm91dGVzLmNvbmNhdChnbG9iYWwuYW50Um91dGVyKQ0KICAgIH0sDQogICAgYWN0aXZlTWVudSgpIHsNCiAgICAgIGNvbnN0IHJvdXRlID0gdGhpcy4kcm91dGUNCiAgICAgIGNvbnN0IHsgbWV0YSwgcGF0aCB9ID0gcm91dGUNCiAgICAgIC8vIGlmIHNldCBwYXRoLCB0aGUgc2lkZWJhciB3aWxsIGhpZ2hsaWdodCB0aGUgcGF0aCB5b3Ugc2V0DQogICAgICBpZiAobWV0YS5hY3RpdmVNZW51KSB7DQogICAgICAgIHJldHVybiBtZXRhLmFjdGl2ZU1lbnUNCiAgICAgIH0NCiAgICAgIHJldHVybiBwYXRoDQogICAgfSwNCiAgICBzaG93TG9nbygpIHsNCiAgICAgIHJldHVybiB0aGlzLiRzdG9yZS5zdGF0ZS5zZXR0aW5ncy5zaWRlYmFyTG9nbw0KICAgIH0sDQogICAgdmFyaWFibGVzKCkgew0KICAgICAgcmV0dXJuIHZhcmlhYmxlcw0KICAgIH0sDQogICAgaXNDb2xsYXBzZSgpIHsNCiAgICAgIHJldHVybiBmYWxzZTsNCiAgICAgIC8vIHJldHVybiAhdGhpcy5zaWRlYmFyLm9wZW5lZA0KICAgIH0NCiAgfQ0KfQ0K"},{"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;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=\"true\"\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 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 created(){ \r\n },\r\n computed: {\r\n ...mapGetters([\r\n 'sidebar', \r\n ]), \r\n routes() { \r\n return this.$router.options.routes.concat(global.antRouter)\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 false;\r\n // return !this.sidebar.opened\r\n }\r\n }\r\n}\r\n</script>"]}]}