{"remainingRequest":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\main-navbar.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\main-navbar.vue","mtime":1760165958034},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\babel.config.js","mtime":1581948662000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.replace\";\nimport { messages } from '@/i18n';\nimport screenfull from 'screenfull';\nimport UpdatePassword from \"./main-navbar-update-password\";\nimport { clearLoginInfo } from '@/utils';\nvar socket = null;\nexport default {\n inject: ['refresh'],\n data: function data() {\n return {\n i18nMessages: messages,\n updatePasswordVisible: false,\n messageTip: false\n };\n },\n components: {\n UpdatePassword: UpdatePassword\n },\n created: function created() {\n var vue = this;\n socket = new WebSocket(\"\".concat(window.SITE_CONFIG['socketURL']));\n socket.onopen = function () {};\n socket.onerror = function () {\n vue.$notify.error({\n title: vue.$t('notice.disconnect'),\n message: vue.$t('notice.disconnectMessage')\n });\n };\n socket.onmessage = function (evt) {\n var result = JSON.parse(evt.data);\n\n // 如果是有新文本通知,则提示有新通知\n if (result.type === 0) {\n vue.messageTip = true;\n vue.$notify({\n title: vue.$t('notice.new'),\n message: result.msg,\n type: 'info',\n duration: 5000\n });\n }\n };\n\n // 未读通知数\n this.getUnReadCount();\n },\n methods: {\n myNoticeRouter: function myNoticeRouter() {\n this.$router.replace('notice-notice-user');\n },\n getUnReadCount: function getUnReadCount() {\n var _this = this;\n this.$http.get(\"/sys/notice/mynotice/unread\").then(function (_ref) {\n var res = _ref.data;\n if (res.code !== 0) {\n return _this.$message.error(res.msg);\n }\n if (res.data > 0) {\n _this.messageTip = true;\n }\n }).catch(function () {});\n },\n // 全屏\n fullscreenHandle: function fullscreenHandle() {\n if (!screenfull.enabled) {\n return this.$message({\n message: this.$t('fullscreen.prompt'),\n type: 'warning',\n duration: 500\n });\n }\n screenfull.toggle();\n },\n // 修改密码\n updatePasswordHandle: function updatePasswordHandle() {\n var _this2 = this;\n this.updatePasswordVisible = true;\n this.$nextTick(function () {\n _this2.$refs.updatePassword.init();\n });\n },\n // 退出\n logoutHandle: function logoutHandle() {\n var _this3 = this;\n this.$confirm(this.$t('prompt.info', {\n 'handle': this.$t('logout')\n }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(function () {\n _this3.$http.post('/logout').then(function (_ref2) {\n var res = _ref2.data;\n if (res.code !== 0) {\n return _this3.$message.error(res.msg);\n }\n clearLoginInfo();\n _this3.$router.push({\n name: 'login'\n });\n }).catch(function () {});\n }).catch(function () {});\n }\n }\n};",{"version":3,"names":["messages","screenfull","UpdatePassword","clearLoginInfo","socket","inject","data","i18nMessages","updatePasswordVisible","messageTip","components","created","vue","WebSocket","concat","window","SITE_CONFIG","onopen","onerror","$notify","error","title","$t","message","onmessage","evt","result","JSON","parse","type","msg","duration","getUnReadCount","methods","myNoticeRouter","$router","replace","_this","$http","get","then","_ref","res","code","$message","catch","fullscreenHandle","enabled","toggle","updatePasswordHandle","_this2","$nextTick","$refs","updatePassword","init","logoutHandle","_this3","$confirm","confirmButtonText","cancelButtonText","post","_ref2","push","name"],"sources":["src/views/main-navbar.vue"],"sourcesContent":["\r\n\r\n"],"mappings":";AA8CA,SAAAA,QAAA;AACA,OAAAC,UAAA;AACA,OAAAC,cAAA;AACA,SAAAC,cAAA;AACA,IAAAC,MAAA;AACA;EACAC,MAAA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,YAAA,EAAAP,QAAA;MACAQ,qBAAA;MACAC,UAAA;IACA;EACA;EACAC,UAAA;IACAR,cAAA,EAAAA;EACA;EACAS,OAAA,WAAAA,QAAA;IACA,IAAAC,GAAA;IACAR,MAAA,OAAAS,SAAA,IAAAC,MAAA,CAAAC,MAAA,CAAAC,WAAA;IACAZ,MAAA,CAAAa,MAAA;IACAb,MAAA,CAAAc,OAAA;MACAN,GAAA,CAAAO,OAAA,CAAAC,KAAA;QACAC,KAAA,EAAAT,GAAA,CAAAU,EAAA;QACAC,OAAA,EAAAX,GAAA,CAAAU,EAAA;MACA;IACA;IACAlB,MAAA,CAAAoB,SAAA,aAAAC,GAAA;MACA,IAAAC,MAAA,GAAAC,IAAA,CAAAC,KAAA,CAAAH,GAAA,CAAAnB,IAAA;;MAEA;MACA,IAAAoB,MAAA,CAAAG,IAAA;QACAjB,GAAA,CAAAH,UAAA;QACAG,GAAA,CAAAO,OAAA;UACAE,KAAA,EAAAT,GAAA,CAAAU,EAAA;UACAC,OAAA,EAAAG,MAAA,CAAAI,GAAA;UACAD,IAAA;UACAE,QAAA;QACA;MACA;IACA;;IAEA;IACA,KAAAC,cAAA;EACA;EACAC,OAAA;IACAC,cAAA,WAAAA,eAAA;MACA,KAAAC,OAAA,CAAAC,OAAA;IACA;IACAJ,cAAA,WAAAA,eAAA;MAAA,IAAAK,KAAA;MACA,KAAAC,KAAA,CAAAC,GAAA,gCAAAC,IAAA,WAAAC,IAAA;QAAA,IAAAC,GAAA,GAAAD,IAAA,CAAAnC,IAAA;QACA,IAAAoC,GAAA,CAAAC,IAAA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