From d5ec662070f9f3b24f5b441ba27ce98c9b2cb60e Mon Sep 17 00:00:00 2001 From: xz2000 Date: Fri, 25 Jul 2025 12:43:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8E=86=E5=8F=B2=E9=A2=84?= =?UTF-8?q?=E6=B5=8B=E7=95=8C=E9=9D=A2=E6=95=B0=E6=8D=AE=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E5=87=BA=E9=94=99=EF=BC=8C=E8=AF=A6=E6=83=85=E8=BF=98=E6=98=AF?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UI/src/components/ProductSelector.vue | 3 +- UI/src/views/HistoryView.vue | 131 +++++---------- UI/src/views/ManagementView.vue | 4 +- .../views/prediction/GlobalPredictionView.vue | 1 + .../prediction/ProductPredictionView.vue | 1 - prediction_history.db | Bin 167936 -> 167936 bytes server/api.py | 157 +++++++++++------- server/utils/database_utils.py | 5 +- xz数据库2025_07_24.md | 1 + 9 files changed, 147 insertions(+), 156 deletions(-) diff --git a/UI/src/components/ProductSelector.vue b/UI/src/components/ProductSelector.vue index 84cd8f6..4c4d14a 100644 --- a/UI/src/components/ProductSelector.vue +++ b/UI/src/components/ProductSelector.vue @@ -225,10 +225,11 @@ onMounted(() => { // 监听店铺变化,重新获取产品列表 watch(() => props.storeId, () => { - if (props.storeId !== null) { + if (props.storeId !== null && !props.dataSource) { fetchProducts() } }) +