Commit f0f909a8 authored by liuyang's avatar liuyang

用户修改保存BUG

parent 4965553f
...@@ -114,7 +114,7 @@ function fnAddDynamicMenuRoutes (menuList = [], routes = []) { ...@@ -114,7 +114,7 @@ function fnAddDynamicMenuRoutes (menuList = [], routes = []) {
component: null, component: null,
name: menuList[i].url, name: menuList[i].url,
meta: { meta: {
menuId: menuList[i].menuId, menuId: menuList[i].id,
title: menuList[i].name, title: menuList[i].name,
isDynamic: true, isDynamic: true,
isTab: true, isTab: true,
......
...@@ -47,7 +47,9 @@ ...@@ -47,7 +47,9 @@
methods: { methods: {
// 通过menuId与动态(菜单)路由进行匹配跳转至指定路由 // 通过menuId与动态(菜单)路由进行匹配跳转至指定路由
gotoRouteHandle (menu) { 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) { if (route.length >= 1) {
this.$router.push({ name: route[0].name }) this.$router.push({ name: route[0].name })
} }
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
url: this.$http.adornUrl(`/api/sys/user/${!this.dataForm.id ? 'save' : 'update'}`), url: this.$http.adornUrl(`/api/sys/user/${!this.dataForm.id ? 'save' : 'update'}`),
method: 'post', method: 'post',
data: this.$http.adornData({ data: this.$http.adornData({
'userId': this.dataForm.id || undefined, 'id': this.dataForm.id || undefined,
'username': this.dataForm.userName, 'username': this.dataForm.userName,
'password': this.dataForm.password, 'password': this.dataForm.password,
'email': this.dataForm.email, '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