diff --git a/resources/assets/js/pages/manage/components/FileContent.vue b/resources/assets/js/pages/manage/components/FileContent.vue
index 6fa9f9111..9a11308e5 100644
--- a/resources/assets/js/pages/manage/components/FileContent.vue
+++ b/resources/assets/js/pages/manage/components/FileContent.vue
@@ -92,23 +92,25 @@
{{$L('文件名称')}}: {{linkData.name}}
-
+
-
-
-
{{$L('注意:刷新将导致原来的链接失效!')}}
-
-
-
+
@@ -458,7 +460,7 @@ export default {
id: this.linkData.id,
name: this.linkData.name,
});
- this.linkFocus();
+ this.linkCopy();
}).catch(({msg}) => {
this.linkShow = false
$A.modalError(msg);
diff --git a/resources/assets/js/pages/manage/components/ProjectPanel.vue b/resources/assets/js/pages/manage/components/ProjectPanel.vue
index a6b6f0a16..4a89b066c 100644
--- a/resources/assets/js/pages/manage/components/ProjectPanel.vue
+++ b/resources/assets/js/pages/manage/components/ProjectPanel.vue
@@ -387,24 +387,26 @@
-
-
-
{{$L('注意:刷新将导致原来的邀请链接失效!')}}
-
-
-
+
@@ -1369,6 +1371,7 @@ export default {
if (!this.inviteData.url) {
return;
}
+ this.inviteFocus();
this.$copyText(this.inviteData.url).then(_ => {
$A.messageSuccess('复制成功');
}).catch(_ => {
@@ -1377,7 +1380,9 @@ export default {
},
inviteFocus() {
- this.$refs.inviteInput.focus({cursor:'all'});
+ this.$nextTick(_ => {
+ this.$refs.inviteInput.focus({cursor:'all'});
+ });
},
toggleCompleted() {
diff --git a/resources/assets/js/pages/manage/file.vue b/resources/assets/js/pages/manage/file.vue
index 7ff439d9d..63fbbc393 100644
--- a/resources/assets/js/pages/manage/file.vue
+++ b/resources/assets/js/pages/manage/file.vue
@@ -340,23 +340,25 @@
{{$L('文件名称')}}: {{linkData.name}}
-
+
-
-
-
{{$L('注意:刷新将导致原来的链接失效!')}}
-
-
-
+
@@ -1300,7 +1302,7 @@ export default {
id: this.linkData.id,
name: this.linkData.name
});
- this.linkFocus();
+ this.linkCopy();
}).catch(({msg}) => {
this.linkShow = false
$A.modalError(msg);