Commit 71daab71 by lijiabin

【代码优化】 ux: 体验优化等

parent cb004e1f
<template>
<div
class="absolute -left-12 top-2 z-10 flex flex-col items-center bg-white rounded-lg shadow-md shadow-black/6 border border-gray-100 cursor-pointer hover:shadow-lg hover:border-indigo-200 transition-all duration-300 group w-9 h-9 hover:h-18 overflow-hidden"
<button
type="button"
aria-label="返回"
class="absolute -left-12 top-2 z-10 flex flex-col items-center bg-white rounded-lg shadow-md shadow-black/6 border border-gray-100 cursor-pointer hover:shadow-lg hover:border-indigo-200 transition-all duration-300 group w-9 h-9 hover:h-18 overflow-hidden p-0"
@click="handleBack"
>
<svg
......@@ -19,7 +21,7 @@
>
返回
</span>
</div>
</button>
</template>
<script setup lang="ts">
......
......@@ -32,7 +32,6 @@ export default defineComponent({
ref="fileInputRef"
onChange={handleFileChange}
accept="image/*"
multiple
/>
<div onClick={() => fileInputRef?.value?.click()}>{UploadImgIcon}</div>
</div>
......
......@@ -253,7 +253,13 @@ const replaceVideo = () => {
// 预览播放
const previewVideo = () => {
window.open(videoInfo.value?.url, '_blank')
const url = videoInfo.value?.url
if (!url) {
push.warning('暂无可预览的视频')
return
}
window.open(url, '_blank')
}
// 重试上传
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment