|
|
|
@ -145,7 +145,7 @@ export default { |
|
|
|
}, |
|
|
|
// 获取菜单列表 |
|
|
|
getMenuList () { |
|
|
|
return this.$http.get('/sys/menu/list?type=0').then(({ data: res }) => { |
|
|
|
return this.$http.get('/oper/access/menu/list?type=0').then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
@ -154,7 +154,7 @@ export default { |
|
|
|
}, |
|
|
|
// 获取信息 |
|
|
|
getInfo () { |
|
|
|
this.$http.get(`/sys/menu/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
this.$http.get(`/oper/access/menu/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
@ -202,7 +202,7 @@ export default { |
|
|
|
if (!valid) { |
|
|
|
return false |
|
|
|
} |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/menu', this.dataForm).then(({ data: res }) => { |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/oper/access/menu', this.dataForm).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
|