refactor: 移除未使用的图标导入并更新vite配置

移除HomePage2和GroupStorePage中未使用的ChevronRight和Clock图标
更新vite配置以支持环境变量和基础路径设置
This commit is contained in:
MaeLucia 2026-02-26 09:50:16 +08:00
parent 829ee9a1c1
commit 57e5f35803
3 changed files with 14 additions and 9 deletions

View File

@ -1,6 +1,6 @@
import { useNavigate } from 'react-router-dom'
import { motion } from 'framer-motion'
import { ChevronLeft, Star, MapPin, Clock, Bus } from 'lucide-react'
import { ChevronLeft, Star, MapPin, Bus } from 'lucide-react'
import { factoryStores } from '@/mock/groupData'
export default function GroupStorePage() {

View File

@ -1,7 +1,7 @@
import { useState } from 'react'
import { useNavigate } from 'react-router-dom'
import { motion } from 'framer-motion'
import { ChevronLeft, ChevronRight, Check } from 'lucide-react'
import { ChevronLeft, Check } from 'lucide-react'
const timeSlots = [
{ id: 1, time: '09:00-11:00', available: true },

View File

@ -1,12 +1,17 @@
import { defineConfig } from 'vite'
import { defineConfig, loadEnv } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '')
return {
base: env.VITE_BASE_PATH || '/',
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
}
})