diff --git a/index.html b/index.html index 779ebc4..88b0676 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + 食光集 diff --git a/src/App.vue b/src/App.vue index 532912d..a06e34a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,26 @@ diff --git a/src/components/Food/FoodCard.vue b/src/components/Food/FoodCard.vue index 84b1ccb..8251f0d 100644 --- a/src/components/Food/FoodCard.vue +++ b/src/components/Food/FoodCard.vue @@ -65,8 +65,9 @@ diff --git a/src/views/profile/index.vue b/src/views/profile/index.vue index 1244bcb..aece50f 100644 --- a/src/views/profile/index.vue +++ b/src/views/profile/index.vue @@ -1,12 +1,37 @@ - diff --git a/src/views/record/index.vue b/src/views/record/index.vue index 1874d72..7d147d5 100644 --- a/src/views/record/index.vue +++ b/src/views/record/index.vue @@ -38,7 +38,7 @@ import FoodTimeline from '@/components/Food/FoodTimeline.vue' import { Search } from '@element-plus/icons-vue' import { onMounted, reactive } from 'vue' import { useFoodStore } from '@/store/food' -import { IFoodSegment } from '@/types/food' +import type { IFoodSegment } from '@/types/food' const foodStore = useFoodStore() diff --git a/vite.config.ts b/vite.config.ts index 1d0f756..a2139ad 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,6 +5,13 @@ import path from 'path' // https://vite.dev/config/ export default defineConfig({ plugins: [vue()], + css: { + preprocessorOptions: { + scss: { + additionalData: '@use "@/styles/element/index.module.scss" as *;' + } + } + }, base: './', resolve: { // 配置路径别名