mx-space / mx-space/core

管理面板后台项目,点击编辑无效

Open
#2,820 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
558
Forks
156
Avg merge
10h 57m
Merged PRs (30d)
5

Description

Describe the bug

后台点击项目详情的“编辑”,回到详情、网址失去 edit=1,无控制台错误。

根因:ProjectsRouteViewContent.goEdit 添加 edit=1,useProjectsList 使用 useUrlListState,其 write 仅序列化 page。useUrlListState 的 effect 随后重写整段 search,删掉 edit 参数。所有项目共享这一逻辑。

Core v14.8.0 源码与检查时 master(Admin 8.4.28)均存在该逻辑。

Reproduction

后台点击项目详情的“编辑”,无效,页面会闪一下

System Info
Core: @mx-space/core 14.8.0
Admin: Core 14.8.0 自带版本
部署方式: Docker,innei/mx-server:latest
API Base: /api/v3

Node.js: 26.7.0
pnpm: 11.25.0

API 根接口返回:
  name: @mx-space/core
  version: 14.8.0

https://xxu.do/v3
Validations
  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at ProjectsRouteViewContent.goEdit, then trace useProjectsList and useUrlListState, focusing on how the URL search string is written after edit=1 is added. Reproduce the project-detail edit action and verify that the edit parameter remains in the URL without the page flash or navigation failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.