fix(customer-vue): 메시지 수정, waring 수정
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
hide-on-scroll
|
||||
absolute
|
||||
>
|
||||
<v-app-bar-nav-icon>
|
||||
<v-app-bar-nav-icon @click="$router.back()">
|
||||
<v-icon>mdi-arrow-left</v-icon>
|
||||
</v-app-bar-nav-icon>
|
||||
<v-spacer></v-spacer>
|
||||
|
||||
@@ -38,49 +38,42 @@ const routes = [
|
||||
path: "/home",
|
||||
beforeEnter: authCheck,
|
||||
name: 'home',
|
||||
beforeEnter: authCheck,
|
||||
component: () => import('../views/HomeView')
|
||||
},
|
||||
{
|
||||
path: "/search",
|
||||
beforeEnter: authCheck,
|
||||
name: 'search-store',
|
||||
beforeEnter: authCheck,
|
||||
component: () => import('../views/SearchStore')
|
||||
},
|
||||
{
|
||||
path: "/history",
|
||||
beforeEnter: authCheck,
|
||||
name: 'order-history',
|
||||
beforeEnter: authCheck,
|
||||
component: () => import('../views/OrderHistory')
|
||||
},
|
||||
{
|
||||
path: "/favorite",
|
||||
beforeEnter: authCheck,
|
||||
name: 'favorite-store',
|
||||
beforeEnter: authCheck,
|
||||
component: () => import('../views/FavoriteStore')
|
||||
},
|
||||
{
|
||||
path: "/notification",
|
||||
beforeEnter: authCheck,
|
||||
name: 'notification',
|
||||
beforeEnter: authCheck,
|
||||
component: () => import('../views/NotificationView')
|
||||
},
|
||||
{
|
||||
path: "/item/:itemId",
|
||||
beforeEnter: authCheck,
|
||||
name: 'itemDetail',
|
||||
beforeEnter: authCheck,
|
||||
component: () => import('../views/ItemDetail')
|
||||
},
|
||||
{
|
||||
path: "/order",
|
||||
beforeEnter: authCheck,
|
||||
name: 'orderPage',
|
||||
beforeEnter: authCheck,
|
||||
component: () => import('../views/OrderPage')
|
||||
},
|
||||
{
|
||||
|
||||
@@ -167,6 +167,7 @@ export default {
|
||||
this.setItem.count =1
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
</v-list-item>
|
||||
|
||||
<v-card-actions class="pb-2">
|
||||
<v-btn block color="warning">삭제하기</v-btn>
|
||||
<v-btn block color="warning" @click="message('준비중입니다.')">삭제하기</v-btn>
|
||||
</v-card-actions>
|
||||
|
||||
</v-card>
|
||||
@@ -107,6 +107,9 @@ export default {
|
||||
console.log(error.response)
|
||||
})
|
||||
},
|
||||
message: function(message){
|
||||
alert(message)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -30,7 +30,7 @@ export default {
|
||||
},
|
||||
data: function() {
|
||||
return {
|
||||
drawer: null,
|
||||
drawer: true,
|
||||
notificationCounts: 0
|
||||
}
|
||||
},
|
||||
|
||||
@@ -49,29 +49,27 @@ class CategoryOwnerApiControllerTest {
|
||||
@DisplayName("카테고리리스트_가져오기_성공")
|
||||
void getCategoryList_success() throws Exception {
|
||||
//given
|
||||
Long storeId = 1L;
|
||||
List<CategoryDto> categoryDtoList = new ArrayList<>();
|
||||
categoryDtoList.add(CategoryDto.builder()
|
||||
.id(10L)
|
||||
.name("카테고리1")
|
||||
.name("카페인")
|
||||
.items(List.of(new ItemDto(1L,"아메리카노",null,5000L)
|
||||
,new ItemDto(1L,"카페라테",null,5000L)))
|
||||
,new ItemDto(2L,"카페라테",null,5000L)))
|
||||
.order(1)
|
||||
.build());
|
||||
|
||||
categoryDtoList.add(CategoryDto.builder()
|
||||
.id(11L)
|
||||
.name("카테고리2")
|
||||
.items(List.of(new ItemDto(1L,"비스킷",null,5000L)
|
||||
,new ItemDto(1L,"와플",null,5000L)))
|
||||
.name("디저트")
|
||||
.items(List.of(new ItemDto(3L,"비스킷",null,5000L)
|
||||
,new ItemDto(4L,"와플",null,5000L)))
|
||||
.order(2)
|
||||
.build());
|
||||
|
||||
given(categoryService.getCategoriesWithItem(any())).willReturn(categoryDtoList);
|
||||
given(categoryService.getCategoriesWithItemByUserId(any())).willReturn(categoryDtoList);
|
||||
//when
|
||||
|
||||
ResultActions actions = mockMvc.perform(MockMvcRequestBuilders.get("/api/owner/category")
|
||||
.param("storeId",String.valueOf(storeId))
|
||||
.header("user-id","2")
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user