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> <span class="dstit">{{index+1}} {{ item.addr }} 服务器概况</span>
<div class="dsinfo"> <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> <a href="" class="dsbtn green">代码对比</a>
</div> </div>
<div class="dscon"> <div class="dscon">

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

@ -42,17 +42,21 @@ export default {
dstip: '', dstip: '',
flist: [], flist: [],
spath: '/', // spath: '/', //
sport: 9098, //
} }
}, },
mounted() { mounted() {
this.srcip = this.$route.query.srcip this.srcip = this.$route.query.srcip
this.sport = this.$route.query.sport
this.getFlist() this.getFlist()
}, },
methods: { methods: {
getFlist() { getFlist() {
GetFileList({ GetFileList({
srcip: this.srcip, srcip: this.srcip,
path: this.spath path: this.spath,
sport: this.sport
}).then(res => { }).then(res => {
// console.log(res) // console.log(res)
this.flist = res.data.list this.flist = res.data.list

Loading…
Cancel
Save