Commit b6e6a7c4 authored by 水落(YangLei)'s avatar 水落(YangLei)

feat: 优化css配置,解决打包没把样式打进去的问题

parent b4d53406
......@@ -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 {
},
};
</script>
<style lang="less" scoped>
</style>
module.exports = {
purge: ['./src/*.vue'],
purge: ['./src/**/*.vue'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment