You need to sign in or sign up before continuing.

Auto Commit

上级 851122fd
...@@ -3,36 +3,17 @@ import SearchGrade from './components/SearchGrade.vue' ...@@ -3,36 +3,17 @@ import SearchGrade from './components/SearchGrade.vue'
</script> </script>
<template> <template>
<main> <div class="container-main">
<SearchGrade /> <SearchGrade />
</main> </div>
</template> </template>
<style scoped> <style scoped>
header { .container-main{
line-height: 1.5; position: absolute;
} width: 100vw;
height: 100vh;
.logo { padding:10px;
display: block; margin:0;
margin: 0 auto 2rem;
}
@media (min-width: 1024px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}
.logo {
margin: 0 2rem 0 0;
}
header .wrapper {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}
} }
</style> </style>
@import "./base.css"; /* @import "./base.css"; */
#app { html {
max-width: 1280px; margin:0;
margin: 0 auto; padding:0;
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;
}
} }
...@@ -10,6 +10,7 @@ const state = reactive({ ...@@ -10,6 +10,7 @@ const state = reactive({
columns: [{ columns: [{
title: '文章名称', title: '文章名称',
dataIndex: 'title', dataIndex: 'title',
width: '20%',
}, { }, {
title: '链接', title: '链接',
dataIndex: 'url', dataIndex: 'url',
...@@ -33,9 +34,11 @@ const state = reactive({ ...@@ -33,9 +34,11 @@ const state = reactive({
}, { }, {
title: '建议', title: '建议',
dataIndex: 'message', dataIndex: 'message',
width: '20%',
}, { }, {
title: '发文时间', title: '发文时间',
dataIndex: 'postTime', dataIndex: 'postTime',
width: '20%',
}], }],
dataSource: [] dataSource: []
}) })
...@@ -47,11 +50,11 @@ const getCsdnData = (uId) => { ...@@ -47,11 +50,11 @@ const getCsdnData = (uId) => {
} }
state.loading = true state.loading = true
axios.post(url, data, { timeout: 100000 }).then(res => { axios.post(url, data, { timeout: 100000 }).then(res => {
console.log('res', res)
state.dataSource = res.data.data state.dataSource = res.data.data
state.loading = false state.loading = false
initFirstData() initFirstData()
}).finally(() => { }).catch((r) => {
console.log(r)
state.loading = false state.loading = false
state.dataSource = [] state.dataSource = []
initFirstData() initFirstData()
...@@ -186,27 +189,4 @@ function initFirstData() { ...@@ -186,27 +189,4 @@ function initFirstData() {
</div> </div>
</template> </template>
<style scoped> <style scoped></style>
h1 {
font-weight: 500;
font-size: 2.6rem;
top: -10px;
}
h3 {
font-size: 1.2rem;
}
.greetings h1,
.greetings h3 {
text-align: center;
}
@media (min-width: 1024px) {
.greetings h1,
.greetings h3 {
text-align: left;
}
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册