修改:文章编辑页添加缩略名设置
This commit is contained in:
parent
4a34836e45
commit
ebac28d4b6
@ -36,7 +36,13 @@
|
|||||||
placeholder="输入图片URL"
|
placeholder="输入图片URL"
|
||||||
v-model="file.cover">
|
v-model="file.cover">
|
||||||
</el-input>
|
</el-input>
|
||||||
|
<p class="mark-setting-label">缩略名:</p>
|
||||||
|
<el-input
|
||||||
|
class="mark-setting-input"
|
||||||
|
placeholder="缩略名"
|
||||||
|
v-model="file.slug">
|
||||||
|
</el-input>
|
||||||
|
<span class="instruction">本文连接:<a>{{file.slug ? articleLink+file.slug : articleLink+file.id}}</a></span>
|
||||||
<p class="mark-setting-label">分类:</p>
|
<p class="mark-setting-label">分类:</p>
|
||||||
<el-cascader
|
<el-cascader
|
||||||
v-model="categoryIds"
|
v-model="categoryIds"
|
||||||
@ -149,11 +155,12 @@
|
|||||||
moreSetting: false,
|
moreSetting: false,
|
||||||
contentEditor: '',
|
contentEditor: '',
|
||||||
categoryIds: [],
|
categoryIds: [],
|
||||||
categories: []
|
categories: [],
|
||||||
|
articleLink: `${window.origin}/artiles/`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
console.log('created')
|
console.log('created',window.origin)
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log('mounted')
|
console.log('mounted')
|
||||||
@ -330,6 +337,7 @@
|
|||||||
username: this.$store.state.user.name,
|
username: this.$store.state.user.name,
|
||||||
filename: filename,
|
filename: filename,
|
||||||
cover: this.file.cover,
|
cover: this.file.cover,
|
||||||
|
slug: this.file.slug,
|
||||||
categoryIds: this.getCategoryList(),
|
categoryIds: this.getCategoryList(),
|
||||||
currentDirectory: this.storageLocation,
|
currentDirectory: this.storageLocation,
|
||||||
contentText: this.contentEditor.getValue()
|
contentText: this.contentEditor.getValue()
|
||||||
@ -358,6 +366,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@import "src/styles/setting";
|
||||||
/deep/ .el-main {
|
/deep/ .el-main {
|
||||||
padding: 30px 20px 20px 20px;
|
padding: 30px 20px 20px 20px;
|
||||||
.v-note-wrapper {
|
.v-note-wrapper {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user