From b9d92852469a408d6e637112abccfb95fbe8404c Mon Sep 17 00:00:00 2001 From: claude_dev Date: Thu, 13 Aug 2026 18:35:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20paper=20New.vue=20=E8=A1=8C?= =?UTF-8?q?=E5=86=85=20@click=20if=20=E8=A1=A8=E8=BE=BE=E5=BC=8F=20rolldow?= =?UTF-8?q?n=20=E7=BC=96=E8=AF=91=E4=B8=8D=E8=BF=87(run576=20vite=20build?= =?UTF-8?q?=20=E5=A4=B1=E8=B4=A5=E6=A0=B9=E5=9B=A0)=E6=94=B9=20setMode=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=20[nas]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/paper/New.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/paper/New.vue b/frontend/src/views/paper/New.vue index a6e3a25..b9e5f35 100644 --- a/frontend/src/views/paper/New.vue +++ b/frontend/src/views/paper/New.vue @@ -119,6 +119,12 @@ onMounted(async () => { const isPortfolio = computed(() => strategyType.value === 'portfolio') const portfolioStrategy = ref('all_weather') +function setMode(m: string): void { + // 组合类型锁定实走:回放卡片不可选(历史回放走「组合回测」页) + if (isPortfolio.value && m === 'replay') return + form.value.mode = m +} + // 组合类型锁定实走(历史回放走「组合回测」页) watch(strategyType, (t) => { if (t === 'portfolio') { @@ -196,7 +202,7 @@ function onSymbols(v: string): void {
{{ m.label }}
{{ isPortfolio && m.value === 'replay' ? '组合策略不支持(请用组合回测)' : m.desc }}