diff --git a/src/api/dish/dish.js b/src/api/dish/dish.js index 39ca1547..13e29c1f 100644 --- a/src/api/dish/dish.js +++ b/src/api/dish/dish.js @@ -94,7 +94,7 @@ export function addMenuDishesApi(data) { // 菜品列表-修改 export function editMenuDishesApi(data) { return request({ - url: '/smart-canteen/menu_dishes/edit', + url: '/smart-canteen/menu_dishes/deitMenuDishes', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -105,7 +105,7 @@ export function editMenuDishesApi(data) { // 菜品列表-详情 export function menuDishesDetailApi(data) { return request({ - url: '/smart-canteen/api/v2/menudishes/detail/'+data.dishesId, + url: '/smart-canteen/menu_dishes/check', method: 'post', headers: { "merchant-id":"378915229716713472", diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 5b2b5d4c..5d83b5a2 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -39,6 +39,7 @@ const user = { id: '', name: '', avatar: '', + face: '', roles: [], permissions: [] }, @@ -62,6 +63,9 @@ const user = { SET_AVATAR(state, avatar) { state.avatar = avatar }, + SET_FACE(state, face) { + state.face = face + }, SET_ROLES(state, roles) { state.roles = roles }, @@ -129,6 +133,7 @@ const user = { commit('SET_PHONE', user.phonenumber) commit('SET_NAME', user.userName) commit('SET_AVATAR', avatar) + commit('SET_FACE', user.photoUrl) return res }) .catch(error => Promise.reject(error)) diff --git a/src/views/dish/dish/index.vue b/src/views/dish/dish/index.vue index 6e30cf02..dc17ad0b 100644 --- a/src/views/dish/dish/index.vue +++ b/src/views/dish/dish/index.vue @@ -160,8 +160,8 @@ - - + + - +