diff --git a/src/App.vue b/src/App.vue index ae8793731afb3af999f79a431699a235a9847c40..3246e33a242b764903977bc599fe145ffbe254a1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -20,27 +20,26 @@ export default { created() { this.setHtmlTitle(); this.setLanguage(this.lang); - enquireScreen((isMobile) => this.setDevice(isMobile)); + enquireScreen(isMobile => this.setDevice(isMobile)); }, mounted() {}, watch: { lang(val) { - this.setLanguage(val); this.setHtmlTitle(); }, $route() { this.setHtmlTitle(); }, - 'theme.mode': function (val) { + 'theme.mode': function(val) { let closeMessage = this.$message.loading(`您选择了主题模式 ${val}, 正在切换...`); changeThemeColor(this.theme.color, val).then(closeMessage); }, - 'theme.color': function (val) { + 'theme.color': function(val) { let closeMessage = this.$message.loading(`您选择了主题色 ${val}, 正在切换...`); changeThemeColor(val, this.theme.mode).then(closeMessage); }, - layout: function () { + layout: function() { window.dispatchEvent(new Event('resize')); }, }, @@ -77,6 +76,3 @@ export default { }, }; - - diff --git a/tailwind.config.js b/tailwind.config.js index f5a319415747b090857f25af10ddf0f328a01b48..780ba6bc806b80fbd774a1921c9b7ffb4dd2d4bd 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,5 +1,5 @@ module.exports = { - purge: ['./src/*.vue'], + purge: ['./src/**/*.vue'], darkMode: false, // or 'media' or 'class' theme: { extend: {},