ajax配置

This commit is contained in:
zhaofang
2022-09-14 13:52:44 +08:00
parent a180deb5d1
commit f49b4d3ab1
22 changed files with 305 additions and 98 deletions

View File

@@ -113,7 +113,7 @@
import accountApi from "@/api/account";
import apiPassword from '@/api/boe/login.js'
import imageUpload from '@/components/ImageUpload/index.vue';
import apiUserhobby from "@/api/modules/userhobby.js"
// import apiUserhobby from "@/api/modules/userhobby.js"
const cityOptions = ['上海', '北京', '广州', '深圳'];
export default{
components:{imageUpload},
@@ -215,12 +215,12 @@
},
methods:{
getInfo() { //获取用户兴趣关联的id
apiUserhobby.info().then(res=>{
if(res.status == 200) {
let data = res.result.map(item => item.refId);
this.checkboxGroup = data;
}
})
// apiUserhobby.info().then(res=>{
// if(res.status == 200) {
// let data = res.result.map(item => item.refId);
// this.checkboxGroup = data;
// }
// })
},
handleClick(e){
},
@@ -236,13 +236,13 @@
refId:item
})
})
apiUserhobby.update(data).then(res=>{
if(res.status == 200) {
this.$message.success('更改成功!')
} else {
this.$message.error("更改失败!")
}
})
// apiUserhobby.update(data).then(res=>{
// if(res.status == 200) {
// this.$message.success('更改成功!')
// } else {
// this.$message.error("更改失败!")
// }
// })
},
...mapActions({
getResOwnerTree: 'resOwner/getResOwnerTree',