Skip to content

Commit

Permalink
改进:文章编辑页预览操作
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed Feb 19, 2021
1 parent 60ab4bc commit dc010b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jmal-cloud-view",
"version": "2.0.6",
"version": "2.1.0",
"description": "jmal cloud",
"author": "Jmal <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/views/markdown/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
placeholder="缩略名"
can-edit
></edit-element>
<a v-if="isEdit" class="view-icon" :title="'预览 '+filename" :href="siteUrl + (alonePage ? '/o/':'/s/')+file.slug" target="_blank">
<a v-if="isEdit" class="view-icon" :title="'预览 '+filename" :href="siteUrl + (alonePage ? '/o/':'/s/')+(file.slug ? file.slug : file.id)" target="_blank">
<svg-icon class="wailian" icon-class="eye-open"></svg-icon>预览
</a>
</div>
Expand Down

0 comments on commit dc010b2

Please sign in to comment.