1 line
5.0 KiB
JSON
1 line
5.0 KiB
JSON
{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\layout\\components\\Settings\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\layout\\components\\Settings\\index.vue","mtime":1732871026532},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireDefault = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _ThemePicker = _interopRequireDefault(require(\"@/components/ThemePicker\"));\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//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = exports.default = {\n components: {\n ThemePicker: _ThemePicker.default\n },\n data: function data() {\n return {\n theme: this.$store.state.settings.theme,\n sideTheme: this.$store.state.settings.sideTheme\n };\n },\n computed: {\n fixedHeader: {\n get: function get() {\n return this.$store.state.settings.fixedHeader;\n },\n set: function set(val) {\n this.$store.dispatch('settings/changeSetting', {\n key: 'fixedHeader',\n value: val\n });\n }\n },\n topNav: {\n get: function get() {\n return this.$store.state.settings.topNav;\n },\n set: function set(val) {\n this.$store.dispatch('settings/changeSetting', {\n key: 'topNav',\n value: val\n });\n if (!val) {\n this.$store.commit('SET_SIDEBAR_ROUTERS', this.$store.state.permission.defaultRoutes);\n }\n }\n },\n tagsView: {\n get: function get() {\n return this.$store.state.settings.tagsView;\n },\n set: function set(val) {\n this.$store.dispatch('settings/changeSetting', {\n key: 'tagsView',\n value: val\n });\n }\n },\n sidebarLogo: {\n get: function get() {\n return this.$store.state.settings.sidebarLogo;\n },\n set: function set(val) {\n this.$store.dispatch('settings/changeSetting', {\n key: 'sidebarLogo',\n value: val\n });\n }\n },\n dynamicTitle: {\n get: function get() {\n return this.$store.state.settings.dynamicTitle;\n },\n set: function set(val) {\n this.$store.dispatch('settings/changeSetting', {\n key: 'dynamicTitle',\n value: val\n });\n }\n }\n },\n methods: {\n themeChange: function themeChange(val) {\n this.$store.dispatch('settings/changeSetting', {\n key: 'theme',\n value: val\n });\n this.theme = val;\n },\n handleTheme: function handleTheme(val) {\n this.$store.dispatch('settings/changeSetting', {\n key: 'sideTheme',\n value: val\n });\n this.sideTheme = val;\n },\n saveSetting: function saveSetting() {\n this.$modal.loading('正在保存到本地,请稍候...');\n this.$cache.local.set('layout-setting', \"{\\n \\\"topNav\\\":\".concat(this.topNav, \",\\n \\\"tagsView\\\":\").concat(this.tagsView, \",\\n \\\"fixedHeader\\\":\").concat(this.fixedHeader, \",\\n \\\"sidebarLogo\\\":\").concat(this.sidebarLogo, \",\\n \\\"dynamicTitle\\\":\").concat(this.dynamicTitle, \",\\n \\\"sideTheme\\\":\\\"\").concat(this.sideTheme, \"\\\",\\n \\\"theme\\\":\\\"\").concat(this.theme, \"\\\"\\n }\"));\n setTimeout(this.$modal.closeLoading(), 1000);\n },\n resetSetting: function resetSetting() {\n this.$modal.loading('正在清除设置缓存并刷新,请稍候...');\n this.$cache.local.remove('layout-setting');\n setTimeout(function () {\n window.location.reload();\n }, 1000);\n }\n }\n};",null]} |