mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 05:46:43 +08:00
ajax配置
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user