23 lines
662 B
Vue
23 lines
662 B
Vue
<script setup>
|
|
import { storeToRefs } from "pinia";
|
|
import ModalDialog from "@/components/ModalDialog.vue";
|
|
import useStore from "@/store";
|
|
|
|
const chargingNotice =
|
|
"检测到智能弓箭已开始充电,为保护电池,设备即将自动关机。\n(注意:此时拔出充电线将会重启设备。)";
|
|
|
|
const store = useStore();
|
|
const { deviceChargingDialogVisible } = storeToRefs(store);
|
|
const { hideDeviceChargingDialog } = store;
|
|
</script>
|
|
|
|
<template>
|
|
<ModalDialog
|
|
:show="deviceChargingDialogVisible"
|
|
:content="chargingNotice"
|
|
:show-cancel="false"
|
|
confirm-text="我知道了"
|
|
:on-confirm="hideDeviceChargingDialog"
|
|
/>
|
|
</template>
|