Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yma16
cat
提交
a687cee0
C
cat
项目概览
yma16
/
cat
与 Fork 源项目一致
Fork自
yma16 / 可视化 csdn 数据
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
cat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
You need to sign in or sign up before continuing.
提交
a687cee0
编写于
6月 29, 2023
作者:
6
63f1bb74d2451104dc7d8b9f
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Auto Commit
上级
851122fd
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
86 deletion
+18
-86
src/App.vue
src/App.vue
+8
-27
src/assets/main.css
src/assets/main.css
+4
-33
src/components/SearchGrade.vue
src/components/SearchGrade.vue
+6
-26
未找到文件。
src/App.vue
浏览文件 @
a687cee0
...
@@ -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
>
src/assets/main.css
浏览文件 @
a687cee0
@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
:
1
fr
1
fr
;
padding
:
0
2rem
;
}
}
}
src/components/SearchGrade.vue
浏览文件 @
a687cee0
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录