Commit f0f909a8 authored by liuyang's avatar liuyang

用户修改保存BUG

parent 4965553f
......@@ -114,7 +114,7 @@ function fnAddDynamicMenuRoutes (menuList = [], routes = []) {
component: null,
name: menuList[i].url,
meta: {
menuId: menuList[i].menuId,
menuId: menuList[i].id,
title: menuList[i].name,
isDynamic: true,
isTab: true,
......
......@@ -47,7 +47,9 @@
methods: {
// 通过menuId与动态(菜单)路由进行匹配跳转至指定路由
gotoRouteHandle (menu) {
var route = this.dynamicMenuRoutes.filter(item => item.meta.menuId === menu.menuId)
console.log(menu)
console.log(this.dynamicMenuRoutes)
var route = this.dynamicMenuRoutes.filter(item => item.meta.menuId === menu.id)
if (route.length >= 1) {
this.$router.push({ name: route[0].name })
}
......
......@@ -146,7 +146,7 @@
url: this.$http.adornUrl(`/api/sys/user/${!this.dataForm.id ? 'save' : 'update'}`),
method: 'post',
data: this.$http.adornData({
'userId': this.dataForm.id || undefined,
'id': this.dataForm.id || undefined,
'username': this.dataForm.userName,
'password': this.dataForm.password,
'email': this.dataForm.email,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment