From 4956c1822e1b7fe94ccd45fe6698234dcd1ebd70 Mon Sep 17 00:00:00 2001
From: Cxx0822 <1556464090@qq.com>
Date: Mon, 23 Jun 2025 22:42:01 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E8=AE=BE=E7=BD=AE?=
=?UTF-8?q?=E6=A8=A1=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 2 +-
src/App.vue | 18 ++++++++
src/components/AppLoading.vue | 20 +++++++++
src/components/Food/FoodCard.vue | 5 ++-
src/components/Food/FoodDailyItem.vue | 2 +-
src/components/Moment/MomentCard.vue | 27 ++++++++++++
src/store/app.ts | 2 +-
src/styles/app.loading.module.scss | 62 +++++++++++++++++++++++++++
src/styles/element/index.module.scss | 7 +++
src/styles/index.module.scss | 2 +
src/views/login/index.vue | 7 +++
src/views/profile/index.vue | 29 ++++++++++++-
src/views/record/index.vue | 2 +-
vite.config.ts | 7 +++
14 files changed, 184 insertions(+), 8 deletions(-)
create mode 100644 src/components/AppLoading.vue
create mode 100644 src/styles/app.loading.module.scss
create mode 100644 src/styles/element/index.module.scss
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 @@
个人中心
+
+ 版本号:
+ {{ appStore.version }}
+
+
+ 检查新版本
+ 退出登录
+
-
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: {
// 配置路径别名