|
|
@@ -1,4 +1,13 @@ |
|
|
|
<script setup> |
|
|
|
import ToastCreator from '~/components/daisy/DToast/toastCreator' |
|
|
|
const showToast = () => { |
|
|
|
const toast = new ToastCreator({ |
|
|
|
message: '截图成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
}) |
|
|
|
toast.createToast() |
|
|
|
} |
|
|
|
const { t } = useI18n() |
|
|
|
|
|
|
|
const imgType = reactive({ |
|
|
@@ -34,6 +43,7 @@ const getImgLength = async () => { |
|
|
|
} |
|
|
|
const setImg = async () => { |
|
|
|
ImgLength = (await window.pywebview.api.setPersonalizationPrimaryImg(imgTypeStatus.value))[0] |
|
|
|
showToast() |
|
|
|
} |
|
|
|
const openImgFiles = async () => { |
|
|
|
await window.pywebview.api.openPrimaryImgFiles() |
|
|
@@ -48,13 +58,6 @@ onBeforeMount(async () => { |
|
|
|
|
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="toast toast-top toast-end"> |
|
|
|
<div class="alert alert-success"> |
|
|
|
<div> |
|
|
|
<span flex items-center><div i-carbon:checkmark-outline />已保存</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="hero justify-start"> |
|
|
|
<div class="hero-content flex-col items-end !pb-0"> |
|
|
|
<div class=" flex"> |
|
|
|