From a687cee0862ecf66bf851bbd6b4f4dc353e0df0b Mon Sep 17 00:00:00 2001 From: 63f1bb74d2451104dc7d8b9f <63f1bb74d2451104dc7d8b9f@devide> Date: Thu, 29 Jun 2023 18:40:26 +0000 Subject: [PATCH] Auto Commit --- src/App.vue | 35 ++++++++------------------------ src/assets/main.css | 37 ++++------------------------------ src/components/SearchGrade.vue | 32 ++++++----------------------- 3 files changed, 18 insertions(+), 86 deletions(-) diff --git a/src/App.vue b/src/App.vue index 5e7f5a3..248b7f1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,36 +3,17 @@ import SearchGrade from './components/SearchGrade.vue' diff --git a/src/assets/main.css b/src/assets/main.css index c133f91..a5c155c 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,35 +1,6 @@ -@import "./base.css"; +/* @import "./base.css"; */ -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - - font-weight: normal; -} - -a, -.green { - text-decoration: none; - color: hsla(160, 100%, 37%, 1); - transition: 0.4s; -} - -@media (hover: hover) { - a:hover { - background-color: hsla(160, 100%, 37%, 0.2); - } -} - -@media (min-width: 1024px) { - body { - display: flex; - place-items: center; - } - - #app { - display: grid; - grid-template-columns: 1fr 1fr; - padding: 0 2rem; - } +html { + margin:0; + padding:0; } diff --git a/src/components/SearchGrade.vue b/src/components/SearchGrade.vue index 31c0450..962b218 100644 --- a/src/components/SearchGrade.vue +++ b/src/components/SearchGrade.vue @@ -10,6 +10,7 @@ const state = reactive({ columns: [{ title: '文章名称', dataIndex: 'title', + width: '20%', }, { title: '链接', dataIndex: 'url', @@ -33,9 +34,11 @@ const state = reactive({ }, { title: '建议', dataIndex: 'message', + width: '20%', }, { title: '发文时间', dataIndex: 'postTime', + width: '20%', }], dataSource: [] }) @@ -47,11 +50,11 @@ const getCsdnData = (uId) => { } state.loading = true axios.post(url, data, { timeout: 100000 }).then(res => { - console.log('res', res) state.dataSource = res.data.data state.loading = false initFirstData() - }).finally(() => { + }).catch((r) => { + console.log(r) state.loading = false state.dataSource = [] initFirstData() @@ -186,27 +189,4 @@ function initFirstData() { - + -- GitLab