Browse Source

修正url参数传递的问题

master
xyiege 7 months ago
parent
commit
c014800437
  1. 11
      vue/afvue/src/views/Setedit.vue

11
vue/afvue/src/views/Setedit.vue

@ -63,16 +63,17 @@ export default {
} }
}, },
mounted(e) { mounted(e) {
console.log("evv",e) // urlid
th let id = this.$route.query.id
this.getscdb() this.getscdb(id)
}, },
methods: { methods: {
getscdb() { getscdb(sid) {
let host ="http://localhost:9099" let host ="http://localhost:9099"
Scedit(host,{ Scedit(host,{
id: this.scid id: sid
}).then(res => { }).then(res => {
console.log(res)
if (res.code == 200) { if (res.code == 200) {
this.serverlist = res.data this.serverlist = res.data
} }

Loading…
Cancel
Save