{"remainingRequest":"D:\\视频边缘1215\\TransFlow\\node_modules\\babel-loader\\lib\\index.js!D:\\视频边缘1215\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\视频边缘1215\\TransFlow\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\视频边缘1215\\TransFlow\\src\\components\\common\\Whole.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\视频边缘1215\\TransFlow\\src\\components\\common\\Whole.vue","mtime":1671074748350},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1671074740928},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\babel-loader\\lib\\index.js","mtime":1671074740599},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1671074740928},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\vue-loader\\lib\\index.js","mtime":1671074747916}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.split\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport bus from \"@/utils/bus\";\nexport default {\n data: function data() {\n return {\n itemList: [// 水平一级菜单栏的菜单\n // { path: '/Home', title: '首页' },\n {\n path: '/test1',\n title: '一级菜单1'\n }, {\n path: '/test2',\n title: '一级菜单2'\n }, {\n path: '/test3',\n title: '一级菜单3'\n }, {\n path: '/permission',\n title: '管理员权限'\n } // { path: '/i18n', title: '国际化组件' }\n ],\n globalTheme: false\n };\n },\n computed: {\n username: function username() {\n return localStorage.getItem('ms_username') || '';\n },\n toIndex: function toIndex() {\n // 根据路径绑定到对应的一级菜单,防止页面刷新重新跳回第一个\n return '/' + this.$route.path.split('/')[1];\n }\n },\n created: function created() {\n this.globalTheme = JSON.parse(localStorage.getItem('global_theme'));\n bus.$emit('global_theme', this.globalTheme); // 将 globalTheme 的值传给父组件\n },\n methods: {\n handleSelect: function handleSelect(path) {\n // 切换菜单栏\n this.$router.push({\n path: path\n });\n },\n handleCommand: function handleCommand(command) {\n // 用户名下拉菜单选择事件\n if (command == 'loginout') {\n localStorage.removeItem('ms_username');\n this.$router.push({\n path: '/Login'\n });\n }\n },\n handleChangeStyle: function handleChangeStyle() {\n // 切换主题\n this.globalTheme = !this.globalTheme;\n localStorage.setItem('global_theme', this.globalTheme); // 本地存储选择的 globalTheme\n\n bus.$emit('global_theme', this.globalTheme); // 将 globalTheme 的值传给父组件\n }\n }\n};",{"version":3,"sources":["Whole.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,OAAA,GAAA,MAAA,aAAA;AACA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,QAAA,EAAA,CAAA;AACA;AACA;AAAA,QAAA,IAAA,EAAA,QAAA;AAAA,QAAA,KAAA,EAAA;AAAA,OAFA,EAGA;AAAA,QAAA,IAAA,EAAA,QAAA;AAAA,QAAA,KAAA,EAAA;AAAA,OAHA,EAIA;AAAA,QAAA,IAAA,EAAA,QAAA;AAAA,QAAA,KAAA,EAAA;AAAA,OAJA,EAKA;AAAA,QAAA,IAAA,EAAA,aAAA;AAAA,QAAA,KAAA,EAAA;AAAA,OALA,CAMA;AANA,OADA;AASA,MAAA,WAAA,EAAA;AATA,KAAA;AAWA,GAbA;AAcA,EAAA,QAAA,EAAA;AACA,IAAA,QADA,sBACA;AACA,aAAA,YAAA,CAAA,OAAA,CAAA,aAAA,KAAA,EAAA;AACA,KAHA;AAIA,IAAA,OAJA,qBAIA;AAAA;AACA,aAAA,MAAA,KAAA,MAAA,CAAA,IAAA,CAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA;AACA;AANA,GAdA;AAsBA,EAAA,OAtBA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