Replace image placeholder links with local image addresses

pull/58/head
guqing 5 years ago
parent f001f0453e
commit 1d2479edb7

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

@ -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

@ -73,7 +73,7 @@
<div class="sheet-thumb"> <div class="sheet-thumb">
<img <img
class="img" class="img"
:src="selectedSheet.thumbnail || '//i.loli.net/2019/05/05/5ccf007c0a01d.png'" :src="selectedSheet.thumbnail || '/placeholder.png'"
@click="()=>this.thumbDrawerVisible = true" @click="()=>this.thumbDrawerVisible = true"
> >
<a-button <a-button

@ -129,7 +129,7 @@
> >
<div class="photo-detail-img"> <div class="photo-detail-img">
<img <img
:src="photo.url || '//i.loli.net/2019/05/05/5ccf007c0a01d.png'" :src="photo.url || '/placeholder.png'"
@click="showThumbDrawer" @click="showThumbDrawer"
> >
</div> </div>

Loading…
Cancel
Save