@ -6,7 +6,7 @@
<span class="dstit">{{index+1}}、 {{ item.addr }} 服务器概况</span>
<div class="dsinfo">
<router-link :to="'/flist?srcip='+item.token" class="dsbtn green">文件浏览器</router-link>
<router-link :to="'/flist?srcip='+item.token+'&sport='+item.sport" class="dsbtn green">文件浏览器</router-link>
<a href="" class="dsbtn green">代码对比</a>
</div>
<div class="dscon">
@ -42,17 +42,21 @@ export default {
dstip: '',
flist: [],
spath: '/', // 当前的目录
sport: 9098, // 服务器运行端口
}
},
mounted() {
this.srcip = this.$route.query.srcip
this.sport = this.$route.query.sport
this.getFlist()
methods: {
getFlist() {
GetFileList({
srcip: this.srcip,
path: this.spath
path: this.spath,
sport: this.sport
}).then(res => {
// console.log(res)
this.flist = res.data.list