{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/layout/components/Navbar.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/layout/components/Navbar.vue","mtime":1701742078549},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/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//\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// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]\n// +----------------------------------------------------------------------\n// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team <admin@crmeb.com>\n// +----------------------------------------------------------------------\n\nimport { mapGetters } from 'vuex';\nimport TopNav from '@/components/TopNav';\nimport Breadcrumb from '@/components/Breadcrumb';\nimport Hamburger from '@/components/Hamburger';\nimport Screenfull from '@/components/Screenfull';\nimport Search from '@/components/HeaderSearch';\nimport Cookies from 'js-cookie';\nexport default {\n  components: {\n    TopNav,\n    Breadcrumb,\n    Hamburger,\n    Screenfull,\n    Search,\n  },\n  data() {\n    return {\n      JavaMerInfo: Cookies.get('JavaMerInfo') ? JSON.parse(Cookies.get('JavaMerInfo')) : {},\n    };\n  },\n  watch: {\n    show(value) {\n      if (value && !this.clickNotClose) {\n        this.addEventClick();\n      }\n      if (value) {\n        addClass(document.body, 'showRightPanel');\n      } else {\n        removeClass(document.body, 'showRightPanel');\n      }\n    },\n  },\n  computed: {\n    ...mapGetters(['sidebar', 'avatar', 'device']),\n    topNav: {\n      get() {\n        return this.$store.state.settings.topNav;\n      },\n    },\n    setting: {\n      get() {\n        return this.$store.state.settings.showSettings;\n      },\n      set(val) {\n        this.$store.dispatch('settings/changeSetting', {\n          key: 'showSettings',\n          value: val,\n        });\n      },\n    },\n  },\n\n  methods: {\n    toggleSideBar() {\n      this.$store.dispatch('app/toggleSideBar');\n    },\n    async logout() {\n      localStorage.removeItem('mer_token');\n      await this.$store.dispatch('user/logout');\n      this.$router.push(`/login?redirect=${this.$route.fullPath}`);\n    },\n  },\n};\n",null]}