-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(file): Prevent progress display after file download completion #8062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -434,6 +434,7 @@ const mobile = computed(() => { | |
| }); | ||
|
|
||
| const search = async () => { | ||
| getWgetProcess(); | ||
| loading.value = true; | ||
| if (req.search != '') { | ||
| req.sortBy = 'name'; | ||
|
|
@@ -983,7 +984,6 @@ onMounted(() => { | |
| nextTick(function () { | ||
| handlePath(); | ||
| }); | ||
| getWgetProcess(); | ||
| }); | ||
| </script> | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The provided answer is not in English, it seems to be in Chinese. Please note the following:
loading.value = true;
if (req.search != '') { |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There appear to be no significant coding changes required with respect to file processing using wget, but there might be some potential issues around handling JSON and caching in the context of this use case. Also, considering how we are currently managing files in-memory through
string, it would generally make more sense to move away from strings for storing state (such as a map or array) so that we don't run out of memory when working on big data sets.In terms of general improvements like modularization/standardizing naming conventions etc., I'd say the current implementation is good, though there are some places where it could improve readability and maintainability. This includes:
Please refer to comments provided inside each function body for specific details.
Remember all these comments can still grow over time based on usage patterns and enhancements made during maintenance processes; It's also worth mentioning we should always have version control checked-in source code!