Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ujia
/
uj-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c1806a2a
authored
Nov 18, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化活码编辑页面的数据查询,确保展示最新的群池和门店配置
1 parent
f588052c
Pipeline
#528
for
c1806a2a
failed
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
apps/web/subapps/usedcar/src/pages/CustomerGroup/GroupCodeEditor.tsx
apps/web/subapps/usedcar/src/pages/CustomerGroup/GroupCodeEditor.tsx
View file @
c1806a2
...
@@ -133,6 +133,9 @@ export default function GroupCodeEditor({ params }: Props) {
...
@@ -133,6 +133,9 @@ export default function GroupCodeEditor({ params }: Props) {
const detail = useQuery({
const detail = useQuery({
queryKey: ['live-code-detail', params?.id],
queryKey: ['live-code-detail', params?.id],
enabled: editing && Boolean(params?.id),
enabled: editing && Boolean(params?.id),
// 活码编辑必须展示服务端最新的群池和门店配置;不沿用子应用默认的 30 秒缓存。
staleTime: 0,
refetchOnMount: 'always',
queryFn: () => liveCodeApi.getLiveCodeDetail<Detail>({ id: params?.id }),
queryFn: () => liveCodeApi.getLiveCodeDetail<Detail>({ id: params?.id }),
});
});
useEffect(() => {
useEffect(() => {
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment