fix: the title of draft post list cannot be displayed (#444)

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/445/head
Ryan Wang 2022-02-21 12:02:30 +08:00 committed by GitHub
parent 2310fecc03
commit 4c886bf512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -256,9 +256,9 @@
</a>
</a-tooltip>
<a-tooltip v-else-if="record.status === 'DRAFT'" :title="'点击预览【' + text + '】'" placement="top">
<a-button class="!p-0" type="link" @click="handlePreview(record.id)">
<a class="no-underline" href="javascript:void(0);" @click="handlePreview(record.id)">
{{ text }}
</a-button>
</a>
</a-tooltip>
<a-button v-else class="!p-0" disabled type="link">
{{ text }}

View File

@ -107,7 +107,7 @@
:scrollToFirstRowOnChange="true"
>
<template #sheetTitle="text, record">
<a-tooltip v-if="record.inProgress" title="当前有内容已保存,但还未发布。" placement="top">
<a-tooltip v-if="record.inProgress" placement="top" title="当前有内容已保存,但还未发布。">
<a-icon
class="cursor-pointer"
style="margin-right: 3px"
@ -123,9 +123,9 @@
</a-tooltip>
<a-tooltip v-else-if="record.status === 'DRAFT'" :title="'点击预览【' + text + '】'" placement="top">
<a-button class="!p-0" type="link" @click="handlePreview(record.id)">
<a class="no-underline" href="javascript:void(0);" @click="handlePreview(record.id)">
{{ text }}
</a-button>
</a>
</a-tooltip>
<a-button v-else class="!p-0" disabled type="link">
@ -425,7 +425,7 @@ export default {
},
handlePreview(sheetId) {
apiClient.sheet.getPreviewLinkById(sheetId).then(response => {
window.open(response.data, '_blank')
window.open(response, '_blank')
})
},