Browse Source

增加运行端口

master
xyiege 5 months ago
parent
commit
94bdd533a3
  1. 2
      vue/afvue/src/views/Dashboard.vue
  2. 6
      vue/afvue/src/views/Flist.vue

2
vue/afvue/src/views/Dashboard.vue

@ -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">

6
vue/afvue/src/views/Flist.vue

@ -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

Loading…
Cancel
Save