File tree Expand file tree Collapse file tree 6 files changed +10
-39
lines changed
Expand file tree Collapse file tree 6 files changed +10
-39
lines changed Original file line number Diff line number Diff line change 11FROM nginx
2- COPY nginx.conf /etc/nginx/sites-available /default
2+ COPY nginx.conf /etc/nginx/conf.d /default.conf
33COPY dist/. /usr/share/nginx/html/
44EXPOSE 80
55CMD ["nginx" , "-g" , "daemon off;" ]
Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ import { useRequestParamsStore } from '@/stores/params'
2626import type { MyRequestResponse } from ' @/types/user'
2727import { axiosInstance } from ' @/utils/axios'
2828import { useQuery } from ' @tanstack/vue-query'
29- import { ref , watch } from ' vue'
3029import { useParseParams } from ' ../hooks/useParseParams'
3130import ListContainer from ' ../lists/ListContainer.vue'
3231import ListPagination from ' ../lists/ListPagination.vue'
3332import NoContent from ' ../lists/NoContent.vue'
3433import MyRequestListBar from ' ./MyRequestListBar.vue'
3534import MyRequestListCard from ' ./MyRequestListCard.vue'
35+ import { computed } from ' vue'
3636
3737const { params } = useRequestParamsStore ()
3838const onPageChange = (value : number ) => {
Original file line number Diff line number Diff 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-
9376const router = useRouter ()
9477
9578const 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 }
Original file line number Diff line number Diff line change @@ -79,10 +79,9 @@ const { info } = storeToRefs(memberStore)
7979
8080const 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
8786const filteredMenu = computed (() => {
8887 return role .value === ' ROLE_USER'
Original file line number Diff line number Diff line change @@ -76,18 +76,7 @@ export interface FormCheckboxProps {
7676
7777export 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
9382export interface CategoryForm {
@@ -97,9 +86,9 @@ export interface CategoryForm {
9786}
9887
9988export 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
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments