Skip to content

Commit 4e80205

Browse files
committed
Merge branch 'develop' of https://github.com/TaskFlow-CLAP/TaskFlow-FE into CLAP-223
2 parents 5287187 + c9cc465 commit 4e80205

File tree

6 files changed

+10
-39
lines changed

6 files changed

+10
-39
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM nginx
2-
COPY nginx.conf /etc/nginx/sites-available/default
2+
COPY nginx.conf /etc/nginx/conf.d/default.conf
33
COPY dist/. /usr/share/nginx/html/
44
EXPOSE 80
55
CMD ["nginx", "-g", "daemon off;"]

src/components/my-request/MyRequestList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ import { useRequestParamsStore } from '@/stores/params'
2626
import type { MyRequestResponse } from '@/types/user'
2727
import { axiosInstance } from '@/utils/axios'
2828
import { useQuery } from '@tanstack/vue-query'
29-
import { ref, watch } from 'vue'
3029
import { useParseParams } from '../hooks/useParseParams'
3130
import ListContainer from '../lists/ListContainer.vue'
3231
import ListPagination from '../lists/ListPagination.vue'
3332
import NoContent from '../lists/NoContent.vue'
3433
import MyRequestListBar from './MyRequestListBar.vue'
3534
import MyRequestListCard from './MyRequestListCard.vue'
35+
import { computed } from 'vue'
3636
3737
const { params } = useRequestParamsStore()
3838
const onPageChange = (value: number) => {

src/components/request-task/RequestTask.vue

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,6 @@ watch(category1, async newValue => {
7373
)
7474
})
7575
76-
const mainCategoryArr = ref<MainCategoryTypes[]>([])
77-
const subCategoryArr = ref<SubCategoryTypes[]>([])
78-
const afterSubCategoryArr = ref<SubCategoryTypes[]>([])
79-
80-
onMounted(async () => {
81-
mainCategoryArr.value = await getMainCategory()
82-
subCategoryArr.value = await getSubCategory()
83-
afterSubCategoryArr.value = await getSubCategory()
84-
})
85-
86-
watch(category1, async newValue => {
87-
category2.value = null
88-
afterSubCategoryArr.value = subCategoryArr.value.filter(
89-
subCategory => subCategory.mainCategoryId === newValue?.id
90-
)
91-
})
92-
9376
const router = useRouter()
9477
9578
const handleCancel = () => {
@@ -112,7 +95,8 @@ const handleSubmit = async () => {
11295
}
11396
const formData = new FormData()
11497
const taskInfo = {
115-
categoryId: category2.value?.id,
98+
categoryId: category2.value.id,
99+
116100
title: title.value,
117101
description: description.value
118102
}

src/components/top-bar/SideBar.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,9 @@ const { info } = storeToRefs(memberStore)
7979
8080
const route = useRoute()
8181
82-
// 회원 역할, 닉네임 필요
83-
const role = ref('admin')
84-
const name = ref('백지연')
85-
const nickname = ref('Chloe.yeon')
82+
const role = computed(() => info.value.memberRole)
83+
const name = computed(() => info.value.memberName)
84+
const nickname = computed(() => info.value.nickname)
8685
8786
const filteredMenu = computed(() => {
8887
return role.value === 'ROLE_USER'

src/types/common.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,7 @@ export interface FormCheckboxProps {
7676

7777
export interface ColorSelectProps {
7878
isOpen: boolean
79-
}
80-
81-
export interface LabelDataTypes {
82-
labelId: number
83-
labelName: string
84-
labelColor: string
85-
}
86-
87-
export interface CategoryForm {
88-
name: string
89-
code: string
90-
mainCategoryId?: number
79+
newLabel: LabelDataTypes
9180
}
9281

9382
export interface CategoryForm {
@@ -97,9 +86,9 @@ export interface CategoryForm {
9786
}
9887

9988
export interface CategoryDropdownProps {
100-
options: CategoryForm
89+
options: Category[] | SubCategory[]
10190
labelName: string
102-
modelValue?: CategoryForm
91+
modelValue: Category | SubCategory | null
10392
isLabel?: boolean
10493
isDisabled?: boolean
10594
isInvalidate?: string

src/utils/axios.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const setInterceptors = (instance: AxiosInstance) => {
1111
if (token) {
1212
config.headers.Authorization = `Bearer ${token}`
1313
}
14-
console.log(token, '으로 요청 중')
1514
}
1615
return config
1716
},

0 commit comments

Comments
 (0)