-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix: Resolve the error in file management #8966
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 |
|---|---|---|
|
|
@@ -3,28 +3,28 @@ | |
| <div class="flex w-full flex-col gap-2 md:flex-row items-center"> | ||
| <div class="flex flex-wrap gap-y-2 items-center"> | ||
| <span v-if="props.footer"> | ||
| <el-link type="primary" :underline="false" @click="toForum"> | ||
| <el-link type="primary" underline="never" @click="toForum"> | ||
| <span class="font-normal">{{ $t('setting.forum') }}</span> | ||
| </el-link> | ||
| <el-divider direction="vertical" /> | ||
| <el-link type="primary" :underline="false" @click="toDoc"> | ||
| <el-link type="primary" underline="never" @click="toDoc"> | ||
| <span class="font-normal">{{ $t('setting.doc2') }}</span> | ||
| </el-link> | ||
| <el-divider direction="vertical" /> | ||
| <el-link type="primary" :underline="false" @click="toGithub"> | ||
| <el-link type="primary" underline="never" @click="toGithub"> | ||
| <span class="font-normal">{{ $t('setting.project') }}</span> | ||
| </el-link> | ||
| <el-divider direction="vertical" /> | ||
| </span> | ||
| <div class="flex flex-wrap items-center"> | ||
| <el-link :underline="false" type="primary" @click="toLxware"> | ||
| <el-link underline="never" type="primary" @click="toLxware"> | ||
| {{ $t(!isMasterPro ? 'license.community' : 'license.pro') }} | ||
| </el-link> | ||
| <el-link :underline="false" class="version" type="primary" @click="copyText(version)"> | ||
| <el-link underline="never" class="version" type="primary" @click="copyText(version)"> | ||
| {{ version }} | ||
| </el-link> | ||
| <el-badge is-dot class="-mt-0.5" :hidden="version === 'Waiting' || !globalStore.hasNewVersion"> | ||
| <el-link class="ml-2" :underline="false" type="primary" @click="onLoadUpgradeInfo"> | ||
| <el-link class="ml-2" underline="never" type="primary" @click="onLoadUpgradeInfo"> | ||
| {{ $t('commons.button.update') }} | ||
| </el-link> | ||
| </el-badge> | ||
|
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. Some minor issues can be addressed here:
These checks should help identify simple issues before proceeding further with implementation or deployment. |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -433,19 +433,19 @@ | |
| </el-table-column> | ||
| <el-table-column :label="$t('file.mode')" prop="mode" min-width="110"> | ||
| <template #default="{ row }"> | ||
| <el-link :underline="false" @click="openMode(row)">{{ row.mode }}</el-link> | ||
| <el-link underline="never" @click="openMode(row)">{{ row.mode }}</el-link> | ||
| </template> | ||
| </el-table-column> | ||
| <el-table-column :label="$t('commons.table.user')" prop="user" show-overflow-tooltip min-width="90"> | ||
| <template #default="{ row }"> | ||
| <el-link :underline="false" @click="openChown(row)"> | ||
| <el-link underline="never" @click="openChown(row)"> | ||
| {{ row.user ? row.user : '-' }} ({{ row.uid }}) | ||
| </el-link> | ||
| </template> | ||
| </el-table-column> | ||
| <el-table-column :label="$t('file.group')" prop="group" show-overflow-tooltip> | ||
| <template #default="{ row }"> | ||
| <el-link :underline="false" @click="openChown(row)"> | ||
| <el-link underline="never" @click="openChown(row)"> | ||
| {{ row.group ? row.group : '-' }} ({{ row.gid }}) | ||
| </el-link> | ||
| </template> | ||
|
|
@@ -706,9 +706,10 @@ const searchFile = async () => { | |
| const handleSearchResult = (res: ResultData<File.File>) => { | ||
| paginationConfig.total = res.data.itemTotal; | ||
| if (isHidden.value) { | ||
| data.value = res.data.items.filter((item) => !item.isHidden); | ||
| const items = res.data.items || []; | ||
| data.value = items.filter((item) => !item.isHidden); | ||
| } else { | ||
| data.value = res.data.items; | ||
| data.value = res.data.items || []; | ||
| } | ||
| dirNum.value = data.value.filter((item) => item.isDir).length; | ||
| fileNum.value = data.value.filter((item) => !item.isDir).length; | ||
|
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 only change between versions is that Summary: If there were other specific areas needing review or concern, those would need to be identified separately before making decisions. |
||
|
|
||
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.
The provided code snippet appears to be a Vue.js template with modifications aimed at improving the appearance and functionality of certain components using Element UI library elements like
svg-icon,el-link, andel-popover. The changes include changing the value of theunderlineproperty from"false"to"never", which is not an actual property of Element UI'sel-linkcomponent.Here are some observations:
Underline Property: In Element UI, the
link-underlineprop can have three values:"always","never", or"hover"."always"means the link will always have underline."never"means the link should never have underline."hover"means the link will have underline only on hover.Correct Usage of Link Underlining:
To correctly set the link underlining for both the external links in the
paths.slice(1, -1)iteration and the name displayed when not creating (row.isCreate), you should use"hover"or remove theunderlineattribute entirely if no specific styling is desired.Recommended Changes:
Assuming you want the default behavior of underline (like
<a>...</a>tags do) instead of disabling it completely, you can change the attributes like this:However, if you specifically don't want any underlines, then the most accurate update would be removing the entire
underlineattribute altogether:Choose the one that best fits your design requirements. If the intention was to disable the underline, the second version is more direct; if keeping it as "auto" or "default," the first version should work.