yjryu / KERIS star
김하영 김하영 2023-12-08
231208김하영 반응형 세부 수정
@311ed36db0bcda5ca287387c50bec90b2aeeb4cd
client/resources/css/responsive.css
--- client/resources/css/responsive.css
+++ client/resources/css/responsive.css
@@ -375,10 +375,14 @@
   }
   /* 홍보/뉴스 */
   .news-bos {
-    width: 90%;
+    width: 100%;
     margin: 0 auto;
     grid-template-columns: 1fr;
   }
+  .news-bos-box{
+    padding: 2rem;
+    width: 100%;
+  }
   .modal-content {
     width: 100%;
     background-color: rgb(255, 255, 255);
client/views/pages/user/networking/Matching.vue
--- client/views/pages/user/networking/Matching.vue
+++ client/views/pages/user/networking/Matching.vue
@@ -306,69 +306,71 @@
                 },
                 data: { 'company_id': item.company_id }
             }).then(function (response) {
-                vm.$router.push({ path: '/MatchingOne.page', query: { 'company_id': item.company_id, 'best': best } });
+                vm.$router.push({ path: '/MatchingOne.page', query: { 'company_id': item.company_id, 'best': best } })
+                .then(() => vm.$nextTick())// DOM 업데이트를 기다립니다.
+                .then(() => window.scrollTo(0, 0)); // 그
             }).catch(function (error) {
-                console.log("기업 상세조회 오류, 관리자에게 문의하세요.");
-            })
-        },
-
-        /**페이지 접속 로그 등록 */
-        pageLogInsert: function () {
-            const vm = this;
-
-            axios({
-                url: '/statistics/pageLogInsert.json',
-                method: 'post',
-                headers: {
-                    'Content-Type': "application/json; charset=UTF-8",
-                },
-                data: { "page_nm": vm.page_nm }
-            })
-        },
-
-        toggleKeyword(keywordItem) {
-            let index = this.companyListSearch.selectedKeywords.indexOf(keywordItem);
-            if (index !== -1) {
-                this.companyListSearch.selectedKeywords.splice(index, 1);
-            } else {
-                this.companyListSearch.selectedKeywords.push(keywordItem);
-            }
-            this.companySelectList();
-        },
+                    console.log("기업 상세조회 오류, 관리자에게 문의하세요.");
+                })
     },
-    watch: {
-        "modalType": function (newValue, oldValue) {
-            if (this.modalType != null) {
-                console.log("modalType watch: ", newValue, oldValue);
-                this.openModal();
-            }
-        },
-    },
-    computed: {
 
-    },
-    created() {
+    /**페이지 접속 로그 등록 */
+    pageLogInsert: function () {
         const vm = this;
+
         axios({
-            url: "/keyword/keywordList.json",
-            method: "post",
+            url: '/statistics/pageLogInsert.json',
+            method: 'post',
             headers: {
-                "Content-Type": "application/json",
+                'Content-Type': "application/json; charset=UTF-8",
             },
-        }).then(function (response) {
-            vm.keywords = response.data.map(item => item.keyword_nm);
-        }).catch(function (error) {
-            console.log("keywordList - error : ", error);
-        });
+            data: { "page_nm": vm.page_nm }
+        })
     },
-    components: {
-        PaginationButton: PaginationButton,
-    },
-    mounted() {
-        console.log('Matching mounted');
-        this.pageLogInsert();
+
+    toggleKeyword(keywordItem) {
+        let index = this.companyListSearch.selectedKeywords.indexOf(keywordItem);
+        if (index !== -1) {
+            this.companyListSearch.selectedKeywords.splice(index, 1);
+        } else {
+            this.companyListSearch.selectedKeywords.push(keywordItem);
+        }
         this.companySelectList();
-    }
+    },
+},
+watch: {
+    "modalType": function (newValue, oldValue) {
+        if (this.modalType != null) {
+            console.log("modalType watch: ", newValue, oldValue);
+            this.openModal();
+        }
+    },
+},
+computed: {
+
+},
+created() {
+    const vm = this;
+    axios({
+        url: "/keyword/keywordList.json",
+        method: "post",
+        headers: {
+            "Content-Type": "application/json",
+        },
+    }).then(function (response) {
+        vm.keywords = response.data.map(item => item.keyword_nm);
+    }).catch(function (error) {
+        console.log("keywordList - error : ", error);
+    });
+},
+components: {
+    PaginationButton: PaginationButton,
+    },
+mounted() {
+    console.log('Matching mounted');
+    this.pageLogInsert();
+    this.companySelectList();
+}
 }
 </script>
 
Add a comment
List