File tree 2 files changed +16
-5
lines changed
2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -196,13 +196,13 @@ tbody {
196
196
197
197
<tr v-if =" path.length > 0" >
198
198
<td class =" px-3" >
199
- <router-link to = " ../ " >
199
+ <div @dblclick = " exit " >
200
200
<a
201
201
href =" javascript:null"
202
- v-on:click =" back"
202
+ @dblclick =" back"
203
203
>..</a
204
204
>
205
- </router-link >
205
+ </div >
206
206
</td >
207
207
</tr >
208
208
@@ -450,6 +450,9 @@ export default {
450
450
this .$store .dispatch (" files/updateCreateFolderInputShow" , false );
451
451
await this .$store .dispatch (" files/openDropdown" , null );
452
452
},
453
+ exit () {
454
+ this .$router .push (" ../" );
455
+ },
453
456
454
457
async goToRoutePath () {
455
458
if (typeof this .routePath === " string" ) {
Original file line number Diff line number Diff line change 68
68
scope =" row"
69
69
v-bind:class =" { 'selected-row': isFileSelected() }"
70
70
v-on:click =" selectFile"
71
+ @dblclick =" dbClickItem"
71
72
>
72
73
<td class =" w-50" data-ls-disabled >
73
74
<span v-if =" file.type === 'folder'" >
89
90
</svg >
90
91
91
92
<span v-on:click =" fileClick" >
92
- <router-link v-bind:to = " link " >
93
+ <a >
93
94
<a href =" javascript:null" style =" margin-left : 5px " >
94
95
{{ filename }}
95
96
</a >
96
- </router-link >
97
+ </a >
97
98
</span >
98
99
</span >
99
100
@@ -445,6 +446,13 @@ export default {
445
446
},
446
447
447
448
methods: {
449
+ dbClickItem () {
450
+ if (this .file .type === " folder" ) {
451
+ this .$router .push (this .link );
452
+ } else if (this .file .type === " file" ) {
453
+ this .openModal ();
454
+ }
455
+ },
448
456
openModal () {
449
457
this .$store .commit (" files/openModal" , this .path + this .file .Key );
450
458
},
You can’t perform that action at this time.
0 commit comments