From f400459497f21090bd33b4ee2047b10a5fb5d5f3 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Mon, 15 Jun 2026 15:11:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(backend):=20=E4=BF=AE=E5=A4=8D=E6=89=AB?= =?UTF-8?q?=E7=A0=81=E9=A1=B5=20index.html=20not=20found?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- CHANGELOG.md | 5 +++++ backend/config/config.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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")