| 1 |
- {"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\\App.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\App.vue","mtime":1581948664000},{"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.function.name\";\nimport Cookies from 'js-cookie';\nimport { messages } from '@/i18n';\nexport default {\n watch: {\n '$i18n.locale': 'i18nHandle'\n },\n created: function created() {\n this.i18nHandle(this.$i18n.locale);\n },\n methods: {\n i18nHandle: function i18nHandle(val, oldVal) {\n Cookies.set('language', val);\n document.querySelector('html').setAttribute('lang', val);\n document.title = messages[val].brand.lg;\n // 非登录页面,切换语言刷新页面\n if (this.$route.name !== 'login' && oldVal) {\n window.location.reload();\n }\n }\n }\n};",{"version":3,"names":["Cookies","messages","watch","created","i18nHandle","$i18n","locale","methods","val","oldVal","set","document","querySelector","setAttribute","title","brand","lg","$route","name","window","location","reload"],"sources":["src/App.vue"],"sourcesContent":["<template>\r\n <transition name=\"el-fade-in-linear\">\r\n <router-view />\r\n </transition>\r\n</template>\r\n\r\n<script>\r\nimport Cookies from 'js-cookie'\r\nimport { messages } from '@/i18n'\r\nexport default {\r\n watch: {\r\n '$i18n.locale': 'i18nHandle'\r\n },\r\n created () {\r\n this.i18nHandle(this.$i18n.locale)\r\n },\r\n methods: {\r\n i18nHandle (val, oldVal) {\r\n Cookies.set('language', val)\r\n document.querySelector('html').setAttribute('lang', val)\r\n document.title = messages[val].brand.lg\r\n // 非登录页面,切换语言刷新页面\r\n if (this.$route.name !== 'login' && oldVal) {\r\n window.location.reload()\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n"],"mappings":";AAOA,OAAAA,OAAA;AACA,SAAAC,QAAA;AACA;EACAC,KAAA;IACA;EACA;EACAC,OAAA,WAAAA,QAAA;IACA,KAAAC,UAAA,MAAAC,KAAA,CAAAC,MAAA;EACA;EACAC,OAAA;IACAH,UAAA,WAAAA,WAAAI,GAAA,EAAAC,MAAA;MACAT,OAAA,CAAAU,GAAA,aAAAF,GAAA;MACAG,QAAA,CAAAC,aAAA,SAAAC,YAAA,SAAAL,GAAA;MACAG,QAAA,CAAAG,KAAA,GAAAb,QAAA,CAAAO,GAAA,EAAAO,KAAA,CAAAC,EAAA;MACA;MACA,SAAAC,MAAA,CAAAC,IAAA,gBAAAT,MAAA;QACAU,MAAA,CAAAC,QAAA,CAAAC,MAAA;MACA;IACA;EACA;AACA","ignoreList":[]}]}
|