diff --git a/src/main.js b/src/main.js index 4262294..d52bb28 100644 --- a/src/main.js +++ b/src/main.js @@ -2,6 +2,7 @@ import app from '@/app'; import store from '@/stores'; import router from '@/router'; import TDesignVue from '@/plugins/TDesign-vue'; // TDesign按需引入 +import '@/styles/common.less'; // 自定义全局样式表 app.use(store); app.use(router); diff --git a/src/styles/common.less b/src/styles/common.less new file mode 100644 index 0000000..8a1b754 --- /dev/null +++ b/src/styles/common.less @@ -0,0 +1,12 @@ +/** + * 公共样式 + */ +@import "variables"; + +body, +html, +#app { + margin: 0; + padding: 0; + height: 100%; +} diff --git a/src/styles/variables.less b/src/styles/variables.less new file mode 100644 index 0000000..0c94a41 --- /dev/null +++ b/src/styles/variables.less @@ -0,0 +1,3 @@ +/** + * 变量表 + */