diff --git a/CHANGELOG.md b/CHANGELOG.md index ce9a7c6..dcdd75a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.42] - 2026-06-15 + +### 修复 +- 修复商品二维码扫码页报"index.html not found"的错误 + ## [1.0.41] - 2026-06-15 ### 改进 diff --git a/backend/config/config.go b/backend/config/config.go index 61fb6a0..ff994a4 100644 --- a/backend/config/config.go +++ b/backend/config/config.go @@ -80,7 +80,7 @@ func Load() { viper.SetDefault("storage.upload_dir", "./uploads/images") viper.SetDefault("storage.base_url", "http://localhost:8080/images") viper.SetDefault("storage.public_url", "http://localhost:8081") - viper.SetDefault("storage.web_dir", "./client/build/web") + viper.SetDefault("storage.web_dir", "./web") if err := viper.ReadInConfig(); err != nil { log.Println("[config] no config file found, using defaults and env vars")