Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
92c0a5e8
Commit
92c0a5e8
authored
Feb 22, 2020
by
yanju
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'new-func#1' into 'master'
seo 添加 See merge request pigbigbig/beyond-clouds-front!98
parents
2da8b545
323b4a6a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
83 additions
and
26 deletions
+83
-26
nuxt.config.js
+3
-1
pages/answer/detail/_id.vue
+22
-1
pages/blog/detail/_id.vue
+24
-1
pages/index.vue
+1
-1
pages/news/detail/_id.vue
+11
-0
pages/project/detail/_id.vue
+22
-22
No files found.
nuxt.config.js
View file @
92c0a5e8
...
...
@@ -13,7 +13,9 @@ module.exports = {
meta
:
[
{
charset
:
'utf-8'
},
{
name
:
'viewport'
,
content
:
'width=device-width, initial-scale=1'
},
{
hid
:
'description'
,
name
:
'description'
,
content
:
process
.
env
.
npm_package_description
||
''
}
{
hid
:
'description'
,
name
:
'description'
,
content
:
'云里云外,凝心聚力,筑梦未来'
},
{
hid
:
'keywords'
,
name
:
'keywords'
,
content
:
'云里云外开源社区,开源社区,云里云外开源,开源、开源软件,开源网站,开源代码,java开源,perl开源,ruby开源,php开源,开源项目,python开源'
},
],
link
:
[
{
rel
:
'icon'
,
type
:
'image/x-icon'
,
href
:
'/favicon.ico'
}
...
...
pages/answer/detail/_id.vue
View file @
92c0a5e8
...
...
@@ -134,11 +134,22 @@
let
articleDetail
=
await
$axios
.
$get
(
config
.
api
.
get
.
Question
.
detail
+
params
.
id
);
return
{
articleDetail
:
articleDetail
.
data
}
},
head
()
{
return
{
title
:
this
.
articleDetail
.
questionTitle
+
' - 云里云外开源社区'
,
meta
:
[
{
hid
:
'description'
,
name
:
'description'
,
content
:
this
.
articleDetail
.
questionAbstract
},
{
hid
:
'keywords'
,
name
:
'description'
,
content
:
this
.
tagString
}
]
}
},
data
(){
return
{
commentContent
:
''
,
commentList
:[],
answerList
:[],
tagString
:
''
}
},
computed
:{
...
...
@@ -152,7 +163,17 @@
created
(){
this
.
dataGetReAnswerList
();
globalBus
.
$emit
(
config
.
event
.
listenDetailInfo
,
this
.
articleDetail
.
questionTitle
,
'answer'
)
globalBus
.
$emit
(
config
.
event
.
listenDetailInfo
,
this
.
articleDetail
.
questionTitle
,
'answer'
);
this
.
articleDetail
.
tags
.
map
((
val
,
index
)
=>
{
if
(
index
<
this
.
articleDetail
.
tags
.
length
-
1
){
this
.
tagString
=
this
.
tagString
+
val
.
tagName
+
','
}
else
{
this
.
tagString
=
this
.
tagString
+
val
.
tagName
}
})
},
mounted
(){
...
...
pages/blog/detail/_id.vue
View file @
92c0a5e8
...
...
@@ -131,10 +131,23 @@
let
articleDetail
=
await
$axios
.
$get
(
config
.
api
.
get
.
Blog
.
detail
+
params
.
id
);
return
{
articleDetail
:
articleDetail
.
data
}
},
head
()
{
return
{
title
:
this
.
articleDetail
.
blogTitle
+
' - 云里云外开源社区'
,
meta
:
[
{
hid
:
'description'
,
name
:
'description'
,
content
:
this
.
articleDetail
.
blogAbstract
},
{
hid
:
'keywords'
,
name
:
'description'
,
content
:
this
.
tagString
}
]
}
},
data
(){
return
{
commentContent
:
''
,
commentList
:[],
tagString
:
''
}
},
...
...
@@ -148,7 +161,17 @@
},
created
(){
globalBus
.
$emit
(
config
.
event
.
listenDetailInfo
,
this
.
articleDetail
.
blogTitle
,
'blog'
)
globalBus
.
$emit
(
config
.
event
.
listenDetailInfo
,
this
.
articleDetail
.
blogTitle
,
'blog'
);
this
.
articleDetail
.
tags
.
map
((
val
,
index
)
=>
{
if
(
index
<
this
.
articleDetail
.
tags
.
length
-
1
){
this
.
tagString
=
this
.
tagString
+
val
.
tagName
+
','
}
else
{
this
.
tagString
=
this
.
tagString
+
val
.
tagName
}
})
},
...
...
pages/index.vue
View file @
92c0a5e8
...
...
@@ -49,7 +49,7 @@
let
blogList
=
await
$axios
.
$get
(
config
.
api
.
get
.
Blog
.
hotList
,{
params
:{
page
:
1
,
size
:
5
,
size
:
20
,
}
});
...
...
pages/news/detail/_id.vue
View file @
92c0a5e8
...
...
@@ -139,6 +139,15 @@
let
articleDetail
=
await
$axios
.
$get
(
config
.
api
.
get
.
Content
.
detail
+
params
.
id
);
return
{
articleDetail
:
articleDetail
.
data
}
},
head
()
{
return
{
title
:
this
.
articleDetail
.
title
+
' - 云里云外开源社区'
,
meta
:
[
{
hid
:
'description'
,
name
:
'description'
,
content
:
this
.
articleDetail
.
subTitle
},
]
}
},
data
(){
return
{
commentContent
:
''
,
...
...
@@ -149,6 +158,8 @@
}
},
created
(){
this
.
dataGetHotTagsList
();
this
.
dataGetNewsList
();
...
...
pages/project/detail/_id.vue
View file @
92c0a5e8
...
...
@@ -131,31 +131,21 @@
let
articleDetail
=
await
$axios
.
$get
(
config
.
api
.
get
.
Project
.
detail
+
params
.
id
);
return
{
articleDetail
:
articleDetail
.
data
}
},
head
()
{
return
{
title
:
this
.
articleDetail
.
projectName
+
' - 云里云外开源社区'
,
meta
:
[
{
hid
:
'description'
,
name
:
'description'
,
content
:
this
.
articleDetail
.
projectDescription
},
{
hid
:
'keywords'
,
name
:
'description'
,
content
:
this
.
tagString
}
]
}
},
data
(){
return
{
articleDetail2
:{
allowComment
:
true
,
allowForward
:
true
,
blogAbstract
:
''
,
blogId
:
''
,
blogTitle
:
''
,
category
:
''
,
categoryId
:
''
,
commentNumber
:
''
,
content
:
''
,
cover
:
''
,
createTime
:
''
,
originLink
:
''
,
tags
:[],
topics
:[],
userId
:[],
userNick
:[],
viewNumber
:
1
,
viewPrivileges
:
1
},
commentContent
:
''
,
commentList
:[],
tagString
:
''
}
},
...
...
@@ -170,7 +160,17 @@
},
created
(){
globalBus
.
$emit
(
config
.
event
.
listenDetailInfo
,
this
.
articleDetail
.
projectName
,
'project'
)
globalBus
.
$emit
(
config
.
event
.
listenDetailInfo
,
this
.
articleDetail
.
projectName
,
'project'
);
this
.
articleDetail
.
tags
.
map
((
val
,
index
)
=>
{
if
(
index
<
this
.
articleDetail
.
tags
.
length
-
1
){
this
.
tagString
=
this
.
tagString
+
val
.
tagName
+
','
}
else
{
this
.
tagString
=
this
.
tagString
+
val
.
tagName
}
})
},
mounted
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment