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
c1432030
Commit
c1432030
authored
Feb 07, 2020
by
xuebiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
again
parent
6f550f6e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
104 deletions
+0
-104
pages/blog/release/index.vue
+0
-104
No files found.
pages/blog/release/index.vue
View file @
c1432030
...
...
@@ -33,11 +33,7 @@
<div
class=
"header-content"
>
<div
class=
"select__wrap"
>
<span>
*
</span>
<<<<<<<
HEAD
<select-card
selectType=
"2"
:class-list=
"classList"
@
handleClass=
"handleBlogClass"
placeholder=
"请选择文章分类"
></select-card>
=======
<select-card
selectType=
"2"
:class-list=
"classList"
placeholder=
"请选择文章分类"
></select-card>
>>>>>>> caa436abf80933566b76b72acbaa8d43b70d78fc
</div>
<input
type=
"text"
placeholder=
"原文链接"
style=
"width: 461px;"
v-model=
"originLink"
>
</div>
...
...
@@ -50,11 +46,7 @@
<span>
*
</span>
<div
class=
"editor-container"
>
<mavon-editor
<<<<<<<
HEAD
v-model=
"content"
=======
v-model=
"blogContent"
>
>>>>>> caa436abf80933566b76b72acbaa8d43b70d78fc
:toolbars=
"markdownOption"
class=
"editor"
placeholder=
"问题详情...."
...
...
@@ -118,11 +110,7 @@
<p>
已自动存为草稿
</p>
<button
class=
"preview"
@
click=
"readScreen"
>
预览
</button>
<button
class=
"submit"
v-on:click=
"postBlog"
>
提交
</button>
<<<<<<<
HEAD
</div>
=======
</div>
>>>>>>> caa436abf80933566b76b72acbaa8d43b70d78fc
</div>
</div>
</card-container>
...
...
@@ -131,7 +119,6 @@
</
template
>
<
script
>
<<<<<<<
HEAD
import
CardContainer
from
"../../../components/pc/cardContainer"
;
import
SelectCard
from
"../../../components/pc/select/selectCard"
;
import
config
from
"../../../action/config"
;
...
...
@@ -145,91 +132,6 @@
});
return
{
blogList
:
blogList
.
data
.
dataList
}
=======
import
CardContainer
from
"../../../components/pc/cardContainer"
;
import
SelectCard
from
"../../../components/pc/select/selectCard"
;
import
config
from
"../../../action/config"
;
export
default
{
async
asyncData
({
$axios
})
{
const
blogList
=
await
$axios
.
$get
(
config
.
api
.
get
.
Blog
.
myList
,{
params
:{
page
:
1
,
size
:
8
,
}
});
return
{
blogList
:
blogList
.
data
.
dataList
}
},
components
:
{
SelectCard
,
CardContainer
},
data
()
{
return
{
markdownOption
:
{
bold
:
true
,
// 粗体
italic
:
true
,
// 斜体
header
:
true
,
// 标题
underline
:
true
,
// 下划线
strikethrough
:
true
,
// 中划线
mark
:
true
,
// 标记
superscript
:
true
,
// 上角标
subscript
:
true
,
// 下角标
quote
:
true
,
// 引用
ol
:
true
,
// 有序列表
ul
:
true
,
// 无序列表
link
:
true
,
// 链接
imagelink
:
true
,
// 图片链接
code
:
true
,
// code
table
:
true
,
// 表格
fullscreen
:
true
,
// 全屏编辑
readmodel
:
true
,
// 沉浸式阅读
htmlcode
:
true
,
// 展示html源码
help
:
false
,
// 帮助
undo
:
true
,
// 上一步
redo
:
true
,
// 下一步
trash
:
true
,
// 清空
save
:
true
,
// 保存(触发events中的save事件)
navigation
:
true
,
// 导航目录
alignleft
:
true
,
// 左对齐
subfield
:
true
,
// 单双栏模式
preview
:
true
// 预览
},
zIndex
:
100
,
// 控制全屏时
value
:
''
,
way
:
''
,
comment
:
''
,
reprint
:
''
,
imgSrc
:
''
,
lastSaveTime
:
new
Date
(),
classList
:
[
'web'
,
'java'
,
'javascript'
]
}
},
methods
:
{
toDetail
(){
this
.
$router
.
push
(
'/detail'
)
},
postBlog
(){
this
.
$axios
.
$post
(
config
.
api
.
post
.
Blog
.
release
,{
allowComment
:
this
.
allowComment
,
//评论权限
allowForward
:
this
.
allowForward
,
//转载权限
blogAbstract
:
this
.
blogAbstract
,
blogContent
:
this
.
blogContent
,
blogTitle
:
this
.
blogTitle
,
categoryId
:
1
,
//文章类型
content
:
"string"
,
cover
:
"string"
,
//封面图
originLink
:
this
.
originLink
,
tagIds
:
[
"Java"
//标签
],
topicIds
:
[
"Java"
//话题
],
viewPrivileges
:
this
.
way
//1公开,0私有
}).
then
((
response
)
=>
{
//处理response
console
.
log
(
response
)
})
>>>>>>>
caa436abf80933566b76b72acbaa8d43b70d78fc
},
components
:
{
SelectCard
,
CardContainer
},
data
()
{
...
...
@@ -377,10 +279,7 @@ export default {
align-items
:
start
;
.blog-release-container__l
{
.blog-release_List{
<<<<<<<
HEAD
width
:
266
*$
length
;
=======
>>>>>>>
caa436abf80933566b76b72acbaa8d43b70d78fc
@extend
%flex-row-spb;
margin-top
:
5px
;
padding-left
:
18
*$
length
;
...
...
@@ -391,12 +290,9 @@ export default {
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
<<<<<<<
HEAD
:hover
{
color
:
#00AAE6
;
}
=======
>>>>>>>
caa436abf80933566b76b72acbaa8d43b70d78fc
}
}
...
...
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