Tencent-RTC / Tencent-RTC/TUIKit_uni-app
[Bug] search.nvue: SearchAdvanced is returned from setup() but never defined
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 8
- Avg merge
- 2d 7m
- Merged PRs (30d)
- 2
Description
Describe the bug
In file uni_modules/tuikit-atomic-x/quickstart/pages/scenes/chat/search/search.nvue,the setup() function returns SearchAdvanced in its return statement,but this variable is never declared or defined anywhere in the setup() scope.
This causes a ReferenceError: SearchAdvanced is not defined at runtime,resulting in the component failing to render and potentially crashing the app.
Steps to reproduce
- Install
tuikit-atomic-xfrom DCloud plugin marketplace2. Navigate to the search page3. Component fails to render due to the undefined variable
Expected behavior
Either:- SearchAdvanced should be properly defined (e.g., const SearchAdvanced = ref(false))- Or it should be removed from the setup() return statement if not needed
Environment
- Platform: uni-app (DCloud plugin marketplace version)- File:
uni_modules/tuikit-atomic-x/quickstart/pages/scenes/chat/search/search.nvue
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open uni_modules/tuikit-atomic-x/quickstart/pages/scenes/chat/search/search.nvue and inspect the setup() return statement alongside the component’s existing references to SearchAdvanced. Resolve the undefined reference by following whether the component needs that value or not, then reproduce the search page flow to confirm it renders without the ReferenceError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 74/100