e22f7a66abcc671a3c7c1e6402aeb803.json 4.4 KB

1
  1. {"remainingRequest":"D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\front\\item\\zyAdmin\\src\\App.vue?vue&type=style&index=0&id=7ba5bd90&lang=css","dependencies":[{"path":"D:\\front\\item\\zyAdmin\\src\\App.vue","mtime":1761614938831},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\css-loader\\index.js","mtime":1761614929364},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":1761614937403},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\postcss-loader\\src\\index.js","mtime":1761614935133},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1761614927801},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\index.js","mtime":1761614937402}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:DQouaWNvbiB7DQogIHdpZHRoOiAxZW07DQogIGhlaWdodDogMWVtOw0KICB2ZXJ0aWNhbC1hbGlnbjogLTAuMTVlbTsNCiAgZmlsbDogY3VycmVudENvbG9yOw0KICBvdmVyZmxvdzogaGlkZGVuOw0KfQ0K"},{"version":3,"sources":["App.vue"],"names":[],"mappings":";AA4FA;AACA;AACA;AACA;AACA;AACA;AACA","file":"App.vue","sourceRoot":"src","sourcesContent":["<template>\r\n <div id=\"app\">\r\n <router-view />\r\n <Setings ref=\"setingsRef\" />\r\n <!-- 检测版本更新 -->\r\n <!-- <Upgrade v-if=\"isVersion\" /> -->\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { mapMutations } from 'vuex';\r\nimport Setings from '@/layout/navBars/breadcrumb/setings.vue';\r\nimport Upgrade from '@/layout/upgrade/index.vue';\r\nimport setting from './setting';\r\nimport { Local } from '@/utils/storage.js';\r\nimport config from '../package.json';\r\n\r\nexport default {\r\n name: 'app',\r\n components: { Setings, Upgrade },\r\n provide() {\r\n return {\r\n reload: this.reload,\r\n };\r\n },\r\n data() {\r\n return {\r\n isVersion: false,\r\n };\r\n },\r\n methods: {\r\n ...mapMutations('media', ['setDevice']),\r\n handleWindowResize() {\r\n this.handleMatchMedia();\r\n },\r\n handleMatchMedia() {\r\n const matchMedia = window.matchMedia;\r\n\r\n if (matchMedia('(max-width: 600px)').matches) {\r\n var deviceWidth = document.documentElement.clientWidth || window.innerWidth;\r\n let css = 'calc(100vw/7.5)';\r\n document.documentElement.style.fontSize = css;\r\n this.setDevice('Mobile');\r\n } else if (matchMedia('(max-width: 992px)').matches) {\r\n this.setDevice('Tablet');\r\n } else {\r\n this.setDevice('Desktop');\r\n }\r\n },\r\n reload() {\r\n this.isRouterAlive = false;\r\n this.$nextTick(() => {\r\n this.isRouterAlive = true;\r\n });\r\n },\r\n // 布局配置弹窗打开\r\n openSetingsDrawer() {\r\n this.bus.$on('openSetingsDrawer', () => {\r\n this.$refs.setingsRef.openDrawer();\r\n });\r\n },\r\n // 获取缓存中的布局配置\r\n getLayoutThemeConfig() {\r\n if (Local.get('themeConfigPrev')) {\r\n this.$store.dispatch('themeConfig/setThemeConfig', Local.get('themeConfigPrev'));\r\n document.documentElement.style.cssText = Local.get('themeConfigStyle');\r\n } else {\r\n Local.set('themeConfigPrev', this.$store.state.themeConfig.themeConfig);\r\n }\r\n },\r\n getVersion() {\r\n this.isVersion = false;\r\n if (this.$route.path !== `${setting.routePre}/login` && this.$route.path !== '/') {\r\n if ((Local.get('version') && Local.get('version') !== config.version) || !Local.get('version'))\r\n this.isVersion = true;\r\n }\r\n },\r\n },\r\n mounted() {\r\n this.handleMatchMedia();\r\n this.openSetingsDrawer();\r\n this.getLayoutThemeConfig();\r\n this.$nextTick((e) => {\r\n // this.getVersion();\r\n });\r\n },\r\n destroyed() {\r\n this.bus.$off('openSetingsDrawer');\r\n },\r\n};\r\n</script>\r\n<style type=\"text/css\">\r\n.icon {\r\n width: 1em;\r\n height: 1em;\r\n vertical-align: -0.15em;\r\n fill: currentColor;\r\n overflow: hidden;\r\n}\r\n</style>\r\n<style lang=\"scss\">\r\nhtml,\r\nbody {\r\n width: 100%;\r\n height: 100%;\r\n overflow: hidden;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n#app {\r\n width: 100%;\r\n height: 100%;\r\n font-family: PingFang SC, Arial, Microsoft YaHei, sans-serif;\r\n}\r\n.right-box .ivu-color-picker .ivu-select-dropdown {\r\n position: absolute;\r\n // width: 300px !important;\r\n left: -73px !important;\r\n}\r\n</style>\r\n"]}]}