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
c67fe341
Commit
c67fe341
authored
Mar 09, 2020
by
yanju
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-cmarkdown-ontent' into 'master'
云顶笔记栏目限制用户发布功能 See merge request pigbigbig/beyond-clouds-front!149
parents
a60be226
1017d7e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
pages/blog/release/index.vue
+15
-5
No files found.
pages/blog/release/index.vue
View file @
c67fe341
...
...
@@ -140,7 +140,7 @@ import SelectCard from "../../../components/pc/select/selectCard";
import
config
from
"../../../action/config"
;
export
default
{
async
asyncData
({
$axios
,
query
,
redirect
})
{
async
asyncData
({
$axios
,
query
,
redirect
,
store
})
{
const
blogListRes
=
await
$axios
.
$get
(
config
.
api
.
get
.
Blog
.
myList
,
{
params
:
{
page
:
1
,
...
...
@@ -153,10 +153,20 @@ export default {
redirect
(
'/users/login'
);
}
blogClassRes
.
data
.
forEach
(
item
=>
{
classList
.
push
({
tag
:
item
.
category
,
tagId
:
item
.
categoryId
})
if
(
item
.
category
===
'云顶笔记'
)
{
if
(
store
.
state
.
userProfile
.
nickName
===
'云顶笔记'
)
{
classList
.
push
({
tag
:
item
.
category
,
tagId
:
item
.
categoryId
})
}
}
else
{
classList
.
push
({
tag
:
item
.
category
,
tagId
:
item
.
categoryId
})
}
});
if
(
query
.
hasOwnProperty
(
'id'
))
{
const
blogDetailRes
=
await
$axios
.
$get
(
config
.
api
.
get
.
Blog
.
detail
+
query
.
id
);
...
...
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