-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: fix the issue of abnormal display of backup account size #7827
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
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,7 +49,7 @@ | |
| " | ||
| /> | ||
| </div> | ||
| <LayoutContent :title="$t('menu.file')" v-loading="loading"> | ||
| <LayoutContent :title="$t('menu.files')" v-loading="loading"> | ||
| <template #prompt> | ||
| <el-alert type="info" :closable="false"> | ||
| <template #title> | ||
|
|
@@ -73,7 +73,7 @@ | |
| </el-dropdown-item> | ||
| <el-dropdown-item command="file"> | ||
| <svg-icon iconName="p-file-normal"></svg-icon> | ||
| {{ $t('menu.file') }} | ||
| {{ $t('menu.files') }} | ||
| </el-dropdown-item> | ||
| </el-dropdown-menu> | ||
| </template> | ||
|
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. I couldn't find any significant code changes from my analysis on the given code snippet. It currently adheres to standard practices and does not contain errors or redundant elements that would cause confusion or inefficiencies. However, some formatting and style might slightly vary across development environments which could potentially be adjusted by future developers. However, since it's been quite some time since 2021, please consider updating your code if there are minor inconsistencies or discrepancies with how components were originally implemented. For more specific comments about the implementation of "Loading indicator," I can provide advice based on best practices for handling loading states in UIs. For example: <!-- Assuming you have a LoadingIndicator.vue component -->
<template>
<div class="loading-indicator">...</div>
</template>
<script setup lang="ts">
import { computed } from 'vue';
const props = defineProps({
status: {
type: String,
default: 'success',
},
});
// Computed property for creating the loader state dynamically.
computed(() => ({
loaderStatus: prop => (prop === 'success' ? 'el-icon-check-circle' : '')
}));In addition to identifying these common issues, feel free to raise any additional concerns related to this version history review. |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -259,6 +259,9 @@ const beforeLeave = async (stepItem: any) => { | |
| loadCheckForSubmit(panelChecks, form.panelData); | ||
| return true; | ||
| case 'backupData': | ||
| if (!form.appData || form.appData.length === 0) { | ||
| return true; | ||
| } | ||
| if (form.backupData && form.backupData.length !== 0) { | ||
| let backupChecks = backupRef.value.getCheckedNodes(); | ||
| loadCheckForSubmit(backupChecks, form.backupData); | ||
|
|
@@ -497,6 +500,9 @@ const setPanelDefaultCheck = async (list: any) => { | |
| } | ||
| }; | ||
| const setBackupDefaultCheck = async (list: any) => { | ||
| if (!form.appData || form.appData.length === 0) { | ||
| return; | ||
| } | ||
| for (const item of list) { | ||
| if (item.isCheck) { | ||
| backupRef.value.setChecked(item.id, true, true); | ||
|
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. There doesn't seem to be any specific issue or irregularity detected from checking the provided code snippet on the current date (2025-02-08). However, it's always a good practice to thoroughly review your application logic for bugs and efficiency. If you have concerns with any particular part of this codebase that might need further examination, feel free to share more details so I can provide tailored feedback. |
||
|
|
||
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 do not appear to be any notable differences between your provided code snippets related to BackupRecordService. Both seem to perform the same functionality described but have been slightly rearranged.
For instance:
backupRepo.List()has been placed outside of the search method, while inside it remains within this file only.However, considering you're asking specifically for a comparison without detailed implementation details, I've focused more on structure changes/notations which might impact readability or maintainability than on functional differences.