diff --git a/src/layout/components/Footer/index.vue b/src/layout/components/Footer/index.vue index 55380fc..5f55a33 100644 --- a/src/layout/components/Footer/index.vue +++ b/src/layout/components/Footer/index.vue @@ -1,6 +1,6 @@ @@ -8,7 +8,7 @@ diff --git a/src/style/variable.scss b/src/style/global-theme.scss similarity index 98% rename from src/style/variable.scss rename to src/style/global-theme.scss index 1e40a9f..75c0b3a 100644 --- a/src/style/variable.scss +++ b/src/style/global-theme.scss @@ -1,4 +1,4 @@ -/* global css variable */ +/* global css theme */ $margin: 14px; // 盒子间距 $padding: 16px; // 盒子和内容的间距 diff --git a/src/style/index.scss b/src/style/index.scss index b8ab440..9ab8656 100644 --- a/src/style/index.scss +++ b/src/style/index.scss @@ -1,4 +1,4 @@ -@import "./variable.scss"; +@import "./global-theme.scss"; * { margin: 0; diff --git a/vite.config.ts b/vite.config.ts index 8ee157d..c8a9434 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,7 +8,7 @@ import Components from "unplugin-vue-components/vite"; import { ArcoResolver } from "unplugin-vue-components/resolvers"; import { vitePluginForArco } from "@arco-plugins/vite-vue"; import { createSvgIconsPlugin } from "vite-plugin-svg-icons"; -const variablePath = normalizePath(path.normalize("./src/style/variable.scss")); +const themePath = normalizePath(path.normalize("./src/style/global-theme.scss")); // https://vitejs.dev/config/ export default defineConfig(({ mode }) => { @@ -71,7 +71,8 @@ export default defineConfig(({ mode }) => { preprocessorOptions: { scss: { // additionalData的内容会在每个scss文件的开头自动注入 - additionalData: `@import "${variablePath}";` + additionalData: `@import "${themePath}"; + ` } } },