|
|
@ -31,31 +31,7 @@
|
|
|
|
<a-input v-model="selectedPost.url" />
|
|
|
|
<a-input v-model="selectedPost.url" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="访问密码:">
|
|
|
|
<a-form-item label="访问密码:">
|
|
|
|
<a-input
|
|
|
|
<a-input-password placeholder="input password" v-model="selectedPost.password"/>
|
|
|
|
v-model="selectedPost.password"
|
|
|
|
|
|
|
|
v-if="passwordVisible"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a
|
|
|
|
|
|
|
|
href="javascript:void(0);"
|
|
|
|
|
|
|
|
slot="addonAfter"
|
|
|
|
|
|
|
|
@click="togglePasswordVisible"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-icon type="eye-invisible" />
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</a-input>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
type="password"
|
|
|
|
|
|
|
|
v-model="selectedPost.password"
|
|
|
|
|
|
|
|
v-else
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a
|
|
|
|
|
|
|
|
href="javascript:void(0);"
|
|
|
|
|
|
|
|
slot="addonAfter"
|
|
|
|
|
|
|
|
@click="togglePasswordVisible"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-icon type="eye" />
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</a-input>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<a-form-item label="发表时间:">
|
|
|
|
<a-form-item label="发表时间:">
|
|
|
@ -177,7 +153,7 @@
|
|
|
|
<div class="post-thumb">
|
|
|
|
<div class="post-thumb">
|
|
|
|
<img
|
|
|
|
<img
|
|
|
|
class="img"
|
|
|
|
class="img"
|
|
|
|
:src="selectedPost.thumbnail || '//i.loli.net/2019/05/05/5ccf007c0a01d.png'"
|
|
|
|
:src="selectedPost.thumbnail || '/placeholder.png'"
|
|
|
|
@click="()=>this.thumbDrawerVisible=true"
|
|
|
|
@click="()=>this.thumbDrawerVisible=true"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-button
|
|
|
|
<a-button
|
|
|
@ -238,7 +214,6 @@ export default {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
thumbDrawerVisible: false,
|
|
|
|
thumbDrawerVisible: false,
|
|
|
|
categoryFormVisible: false,
|
|
|
|
categoryFormVisible: false,
|
|
|
|
passwordVisible: false,
|
|
|
|
|
|
|
|
settingLoading: true,
|
|
|
|
settingLoading: true,
|
|
|
|
selectedPost: this.post,
|
|
|
|
selectedPost: this.post,
|
|
|
|
selectedTagIds: this.tagIds,
|
|
|
|
selectedTagIds: this.tagIds,
|
|
|
@ -417,9 +392,6 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
togglePasswordVisible() {
|
|
|
|
|
|
|
|
this.passwordVisible = !this.passwordVisible
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onClose() {
|
|
|
|
onClose() {
|
|
|
|
this.$emit('close', false)
|
|
|
|
this.$emit('close', false)
|
|
|
|
this.passwordVisible = false
|
|
|
|
this.passwordVisible = false
|
|
|
|