Commit c67fe341 by yanju

Merge branch 'fix-cmarkdown-ontent' into 'master'

云顶笔记栏目限制用户发布功能

See merge request pigbigbig/beyond-clouds-front!149
parents a60be226 1017d7e4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment