chore: 优化发布弹窗

This commit is contained in:
奔跑的面条 2022-06-11 14:23:16 +08:00
parent aa613e2805
commit b93caf1386

View File

@ -31,18 +31,20 @@
<n-alert :show-icon="false" title="预览地址:" type="success">
{{ previewPath() }}
</n-alert>
<n-space vertical>
<n-button tertiary type="primary" @click="copyPreviewPath()">
复制地址
</n-button>
<n-button :type="release ? 'warning' : 'primary'" @click="sendHandle">
{{ release ? '取消发布' : '发布大屏' }}
</n-button>
</n-space>
</n-space>
</n-list-item>
<n-list-item>
<n-space :size="10">
<n-button @click="modelShowHandle">取消</n-button>
<n-button type="primary" @click="sendHandle">
{{ release ? '取消发布' : '发布' }}
</n-button>
<n-button @click="modelShowHandle">关闭弹窗</n-button>
</n-space>
</n-list-item>
</n-list>
@ -136,7 +138,7 @@ const modelShowHandle = () => {
//
const copyPreviewPath = (successText?: string, failureText?: string) => {
if(isSupported) {
if (isSupported) {
copy()
window['$message'].success(successText || '复制成功!')
} else {