v3.4.17 门店套餐审核快捷入口
CI / verify (push) Has been cancelled

This commit is contained in:
2026-08-16 11:57:01 +08:00
parent 029fd690a5
commit 1c91e6bae9
8 changed files with 250 additions and 4 deletions
@@ -1,4 +1,5 @@
import { useEffect, useState } from 'react';
import { useSearchParams } from 'react-router-dom';
import {
Badge,
Button,
@@ -193,6 +194,14 @@ export default function StorePackageAuditsPage() {
void reload(1, status);
}, [status]);
// 从门店详情 / 门店列表跳转过来时,带 requestId 自动打开审核(对比)抽屉
const [searchParams] = useSearchParams();
useEffect(() => {
const rid = searchParams.get('requestId');
if (rid) void openDetail(rid);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
async function openDetail(id: string) {
setDetailOpen(true);
setDetailLoading(true);