Skip to content

Commit

Permalink
refactor(vueblog): 修改更换学校的接口路径
Browse files Browse the repository at this point in the history
  • Loading branch information
黄天文 committed Aug 11, 2022
1 parent 730f729 commit 17846f4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions vueblog/src/components/content/topbar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,13 @@ export default {
},
//修改用户学校
ChangeSchool(){
let formdata=new FormData()
formdata.append('code',this.schoolCode)
this.$axios.put('/user/school',formdata,this.config).then(res=>{
// if()
})
this.visible=false
},
let formdata = new FormData()
formdata.append('code', this.schoolCode)
this.$axios.put('/user/school/code', formdata, this.config).then(res => {
// if()
})
this.visible = false
},
// 获取省份
getProvinces() {
this.$axios.get("/resource/province").then((res) => {
Expand Down

0 comments on commit 17846f4

Please sign in to comment.