Skip to content

Commit 9040107

Browse files
Merge pull request #83 from dsgler/fix/globalcss
fix: 解决arco和tailwind再dev模式和build模式下全局样式顺序不同的问题
2 parents 9b9919c + a13ba9d commit 9040107

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/App.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const locale = computed(() => {
2525

2626
<style lang="less">
2727
body {
28-
font-size: 16px;
2928
.arco-modal {
3029
width: min(90%, 520px);
3130
}

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import ArcoVueIcon from '@arco-design/web-vue/es/icon';
55
import router from './router';
66
import i18n from './locale';
77
import App from './App.vue';
8+
// 手动导入,防止由于插件导致全局css顺序不同,使dev和build模式下样式不完全相同
9+
import '@arco-design/web-vue/es/style/index.less';
810
import './styles/tailwind.css';
911

1012
// 全量引入样式

0 commit comments

Comments
 (0)