|
|
@ -17,10 +17,8 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="fcon" v-for="item in flist" :key="item"> |
|
|
<div class="fcon" v-for="item in flist" :key="item"> |
|
|
<span class="fcline"> |
|
|
<span class="fcline"> |
|
|
<i class="tb tb-folder" v-if="item.isdir"></i> |
|
|
<a href="javascript:void(0)" @click="openfile(item.path)" v-if="item.isdir"><i class="tb tb-folder"></i>{{ item.path }}</a> |
|
|
|
|
|
<a v-else> <i :class="'tb tb-'+item.suffix"></i>{{ item.path }}</a> |
|
|
<i :class="'tb tb-'+item.suffix" v-else></i> |
|
|
|
|
|
{{ item.path }} |
|
|
|
|
|
</span> |
|
|
</span> |
|
|
<span class="fcline">{{ item.size }}KB</span> |
|
|
<span class="fcline">{{ item.size }}KB</span> |
|
|
<span class="fcline">{{ item.hash }}</span> |
|
|
<span class="fcline">{{ item.hash }}</span> |
|
|
@ -81,6 +79,16 @@ export default { |
|
|
this.$refs.sokey.value = key |
|
|
this.$refs.sokey.value = key |
|
|
// this.spath = this.$refs.sokey.value |
|
|
// this.spath = this.$refs.sokey.value |
|
|
this.getFlist() |
|
|
this.getFlist() |
|
|
|
|
|
}, |
|
|
|
|
|
// 进入详情 |
|
|
|
|
|
openfile(path){ |
|
|
|
|
|
// this.spath = path |
|
|
|
|
|
if(this.spath == '/'){ |
|
|
|
|
|
this.spath = '' |
|
|
|
|
|
} |
|
|
|
|
|
let npath = this.spath+"/"+path |
|
|
|
|
|
this.spath = npath |
|
|
|
|
|
this.getFlist() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|