perf: 优化“取消分享”操作
This commit is contained in:
parent
153e5592e4
commit
1c7a7273ff
@ -302,6 +302,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 切换分享形式
|
// 切换分享形式
|
||||||
shareFormChange() {
|
shareFormChange() {
|
||||||
|
if (!this.shareOption.isPrivacy) {
|
||||||
|
this.shareOption.operationPermissionList = []
|
||||||
|
}
|
||||||
this.createShare('shareFormChange')
|
this.createShare('shareFormChange')
|
||||||
},
|
},
|
||||||
// 取消分享
|
// 取消分享
|
||||||
@ -469,6 +472,7 @@ export default {
|
|||||||
.share-filename {
|
.share-filename {
|
||||||
margin: 25px 0 50px 0;
|
margin: 25px 0 50px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.share-option {
|
.share-option {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<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布局-->
|
<!--list布局-->
|
||||||
<div v-show="fileList.length > 0" :style="{'width':'100%','height': clientHeight+'px'}">
|
<div v-show="fileList.length > 0" :style="{'width':'100%','height': clientHeight+'px'}">
|
||||||
<pl-table
|
<pl-table
|
||||||
@ -474,6 +474,9 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
onCancelShare() {
|
||||||
|
this.getFileList()
|
||||||
|
},
|
||||||
// 点击文件或文件夹
|
// 点击文件或文件夹
|
||||||
fileClick(row) {
|
fileClick(row) {
|
||||||
this.shareDialogObject = row
|
this.shareDialogObject = row
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user