perf: 优化“取消分享”操作

This commit is contained in:
jmal 2024-05-25 23:19:05 +08:00
parent 153e5592e4
commit 1c7a7273ff
2 changed files with 8 additions and 1 deletions

View File

@ -302,6 +302,9 @@ export default {
},
// 切换分享形式
shareFormChange() {
if (!this.shareOption.isPrivacy) {
this.shareOption.operationPermissionList = []
}
this.createShare('shareFormChange')
},
// 取消分享
@ -469,6 +472,7 @@ export default {
.share-filename {
margin: 25px 0 50px 0;
text-align: center;
word-break: break-word;
}
.share-option {

View File

@ -1,6 +1,6 @@
<template>
<div class="container">
<share-dialog :file.sync="shareDialogObject" :status.sync="shareDialogVisible" @onUpdateExpireData="onUpdateExpireData" @onUpdateShareForm="onUpdateShareForm"></share-dialog>
<share-dialog :file.sync="shareDialogObject" :status.sync="shareDialogVisible" @onUpdateExpireData="onUpdateExpireData" @onUpdateShareForm="onUpdateShareForm" @onCancelShare="onCancelShare"></share-dialog>
<!--list布局-->
<div v-show="fileList.length > 0" :style="{'width':'100%','height': clientHeight+'px'}">
<pl-table
@ -474,6 +474,9 @@
})
})
},
onCancelShare() {
this.getFileList()
},
// 点击文件或文件夹
fileClick(row) {
this.shareDialogObject = row