

231120 김성훈 조회수 중복증가 막기 추가
@9a90337aeb119ab0e3bd70e4d955f8f2529f2953
--- client/views/pages/user/Data/Data.vue
+++ client/views/pages/user/Data/Data.vue
... | ... | @@ -216,12 +216,7 @@ |
216 | 216 |
}, |
217 | 217 |
data: { 'post_id': item.post_id, 'bbs_id': item.bbs_id } |
218 | 218 |
}).then(function (response) { |
219 |
- if (response.data > 0) { |
|
220 |
- vm.$router.push({ path: '/DataDtali.page', query: { 'post_id': item.post_id, 'file_id': item.file_id, 'bbs_id': item.bbs_id } }); |
|
221 |
- } else { |
|
222 |
- alert("자료집 상세보기 오류") |
|
223 |
- } |
|
224 |
- |
|
219 |
+ vm.$router.push({ path: '/DataDtali.page', query: { 'post_id': item.post_id, 'file_id': item.file_id, 'bbs_id': item.bbs_id } }); |
|
225 | 220 |
}).catch(function (error) { |
226 | 221 |
alert("자료집 상세보기 오류, 관리자에게 문의바랍니다."); |
227 | 222 |
}) |
--- client/views/pages/user/Data/Technology.vue
+++ client/views/pages/user/Data/Technology.vue
... | ... | @@ -275,12 +275,7 @@ |
275 | 275 |
}, |
276 | 276 |
data: { 'post_id': item.post_id, 'bbs_id': item.bbs_id } |
277 | 277 |
}).then(function (response) { |
278 |
- if (response.data > 0) { |
|
279 |
- vm.$router.push({ path: '/TechnologyOne.page', query: { 'post_id': item.post_id, 'file_id': item.file_id, 'bbs_id': item.bbs_id } }); |
|
280 |
- } else { |
|
281 |
- alert("기술문서 상세보기 오류") |
|
282 |
- } |
|
283 |
- |
|
278 |
+ vm.$router.push({ path: '/TechnologyOne.page', query: { 'post_id': item.post_id, 'file_id': item.file_id, 'bbs_id': item.bbs_id } }); |
|
284 | 279 |
}).catch(function (error) { |
285 | 280 |
alert("기술문서 상세보기 오류, 관리자에게 문의바랍니다."); |
286 | 281 |
}) |
--- client/views/pages/user/community/News.vue
+++ client/views/pages/user/community/News.vue
... | ... | @@ -96,17 +96,12 @@ |
96 | 96 |
}, |
97 | 97 |
data: { 'post_id': item.post_id, 'bbs_id': item.bbs_id } |
98 | 98 |
}).then(function (response) { |
99 |
- if (response.data > 0) { |
|
100 | 99 |
vm.findFiles(item) |
101 | 100 |
vm.isModalOpen = true; |
102 | 101 |
vm.videoUrl = item.post_content; |
103 | 102 |
vm.urlHTML(vm.videoUrl) |
104 | 103 |
vm.modalItem = item; |
105 | 104 |
vm.realContent = item.real_content; |
106 |
- } else { |
|
107 |
- alert("홍보/뉴스 상세보기 오류") |
|
108 |
- } |
|
109 |
- |
|
110 | 105 |
}).catch(function (error) { |
111 | 106 |
alert("홍보/뉴스 상세보기 오류, 관리자에게 문의바랍니다."); |
112 | 107 |
}) |
--- client/views/pages/user/community/Notice.vue
+++ client/views/pages/user/community/Notice.vue
... | ... | @@ -116,12 +116,7 @@ |
116 | 116 |
}, |
117 | 117 |
data: { 'post_id': item.post_id, 'bbs_id': item.bbs_id } |
118 | 118 |
}).then(function (response) { |
119 |
- if (response.data > 0) { |
|
120 |
- vm.$router.push({ path: '/NoticeOne.page', query: { 'post_id': item.post_id, 'file_id': item.file_id, 'bbs_id': item.bbs_id } }); |
|
121 |
- } else { |
|
122 |
- alert("공지사항 상세보기 오류") |
|
123 |
- } |
|
124 |
- |
|
119 |
+ vm.$router.push({ path: '/NoticeOne.page', query: { 'post_id': item.post_id, 'file_id': item.file_id, 'bbs_id': item.bbs_id } }); |
|
125 | 120 |
}).catch(function (error) { |
126 | 121 |
alert("공지사항 상세보기 오류, 관리자에게 문의바랍니다."); |
127 | 122 |
}) |
--- client/views/pages/user/community/Wgcommunity.vue
+++ client/views/pages/user/community/Wgcommunity.vue
... | ... | @@ -176,12 +176,7 @@ |
176 | 176 |
}, |
177 | 177 |
data: { 'post_id': item.post_id, 'bbs_id': item.bbs_id } |
178 | 178 |
}).then(function (response) { |
179 |
- if (response.data > 0) { |
|
180 |
- vm.$router.push({ path: '/WgcommunityOne.page', query: { 'post_id': item.post_id, 'file_id': item.file_id, 'bbs_id': item.bbs_id } }); |
|
181 |
- } else { |
|
182 |
- alert("전문가 협의체 상세보기 오류") |
|
183 |
- } |
|
184 |
- |
|
179 |
+ vm.$router.push({ path: '/WgcommunityOne.page', query: { 'post_id': item.post_id, 'file_id': item.file_id, 'bbs_id': item.bbs_id } }); |
|
185 | 180 |
}).catch(function (error) { |
186 | 181 |
alert("전문가 협의체 상세보기 오류, 관리자에게 문의바랍니다."); |
187 | 182 |
}) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?