1 line
4.9 KiB
JSON
1 line
4.9 KiB
JSON
{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\babel.config.js","mtime":1718070785981},{"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:aW1wb3J0IF9vYmplY3RTcHJlYWQgZnJvbSAiRDovcGhwc3R1ZHlfcHJvL1dXVy90cmF2ZWwvYWRtaW4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvZXNtL29iamVjdFNwcmVhZDIuanMiOwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwoKaW1wb3J0IHsgbWFwR2V0dGVycyB9IGZyb20gJ3Z1ZXgnOwppbXBvcnQgTG9nbyBmcm9tICcuL0xvZ28nOwppbXBvcnQgU2lkZWJhckl0ZW0gZnJvbSAnLi9TaWRlYmFySXRlbSc7CmltcG9ydCBfdmFyaWFibGVzIGZyb20gJ0Avc3R5bGVzL3ZhcmlhYmxlcy5zY3NzJzsKZXhwb3J0IGRlZmF1bHQgewogIGNvbXBvbmVudHM6IHsKICAgIFNpZGViYXJJdGVtOiBTaWRlYmFySXRlbSwKICAgIExvZ286IExvZ28KICB9LAogIGNvbXB1dGVkOiBfb2JqZWN0U3ByZWFkKF9vYmplY3RTcHJlYWQoe30sIG1hcEdldHRlcnMoWydwZXJtaXNzaW9uX3JvdXRlcycsICdzaWRlYmFyJ10pKSwge30sIHsKICAgIGFjdGl2ZU1lbnU6IGZ1bmN0aW9uIGFjdGl2ZU1lbnUoKSB7CiAgICAgIHZhciByb3V0ZSA9IHRoaXMuJHJvdXRlOwogICAgICB2YXIgbWV0YSA9IHJvdXRlLm1ldGEsCiAgICAgICAgcGF0aCA9IHJvdXRlLnBhdGg7CiAgICAgIC8vIGlmIHNldCBwYXRoLCB0aGUgc2lkZWJhciB3aWxsIGhpZ2hsaWdodCB0aGUgcGF0aCB5b3Ugc2V0CiAgICAgIGlmIChtZXRhLmFjdGl2ZU1lbnUpIHsKICAgICAgICByZXR1cm4gbWV0YS5hY3RpdmVNZW51OwogICAgICB9CiAgICAgIHJldHVybiBwYXRoOwogICAgfSwKICAgIHNob3dMb2dvOiBmdW5jdGlvbiBzaG93TG9nbygpIHsKICAgICAgcmV0dXJuIHRoaXMuJHN0b3JlLnN0YXRlLnNldHRpbmdzLnNpZGViYXJMb2dvOwogICAgfSwKICAgIHZhcmlhYmxlczogZnVuY3Rpb24gdmFyaWFibGVzKCkgewogICAgICByZXR1cm4gX3ZhcmlhYmxlczsKICAgIH0sCiAgICBpc0NvbGxhcHNlOiBmdW5jdGlvbiBpc0NvbGxhcHNlKCkgewogICAgICByZXR1cm4gIXRoaXMuc2lkZWJhci5vcGVuZWQ7CiAgICB9CiAgfSkKfTs="},{"version":3,"names":["mapGetters","Logo","SidebarItem","variables","components","computed","_objectSpread","activeMenu","route","$route","meta","path","showLogo","$store","state","settings","sidebarLogo","isCollapse","sidebar","opened"],"sources":["src/layout/components/Sidebar/index.vue"],"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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAAA,UAAA;AACA,OAAAC,IAAA;AACA,OAAAC,WAAA;AACA,OAAAC,UAAA;AAEA;EACAC,UAAA;IAAAF,WAAA,EAAAA,WAAA;IAAAD,IAAA,EAAAA;EAAA;EACAI,QAAA,EAAAC,aAAA,CAAAA,aAAA,KACAN,UAAA,EACA,qBACA,UACA;IACAO,UAAA,WAAAA,WAAA;MACA,IAAAC,KAAA,QAAAC,MAAA;MACA,IAAAC,IAAA,GAAAF,KAAA,CAAAE,IAAA;QAAAC,IAAA,GAAAH,KAAA,CAAAG,IAAA;MACA;MACA,IAAAD,IAAA,CAAAH,UAAA;QACA,OAAAG,IAAA,CAAAH,UAAA;MACA;MACA,OAAAI,IAAA;IACA;IACAC,QAAA,WAAAA,SAAA;MACA,YAAAC,MAAA,CAAAC,KAAA,CAAAC,QAAA,CAAAC,WAAA;IACA;IACAb,SAAA,WAAAA,UAAA;MACA,OAAAA,UAAA;IACA;IACAc,UAAA,WAAAA,WAAA;MACA,aAAAC,OAAA,CAAAC,MAAA;IACA;EAAA;AAEA","ignoreList":[]}]} |