135f7c2c8f68fe197bdde7abeb2726b3.json 2.4 KB

1
  1. {"remainingRequest":"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\\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":["\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",{"version":3,"sources":["App.vue"],"names":[],"mappings":";AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"App.vue","sourceRoot":"src","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"]}]}