1<template> 2 <b-modal 3 id="modal-switch-to-running" 4 :ok-title="$t('pageFirmware.modal.switchImages')" 5 :cancel-title="$t('global.action.cancel')" 6 :title="$t('pageFirmware.modal.switchRunningImage')" 7 @ok="$emit('ok')" 8 > 9 <p> 10 {{ $t('pageFirmware.modal.switchRunningImageInfo') }} 11 </p> 12 <p class="m-0"> 13 {{ 14 $t('pageFirmware.modal.switchRunningImageInfo2', { 15 backup, 16 }) 17 }} 18 </p> 19 </b-modal> 20</template> 21 22<script> 23import { useI18n } from 'vue-i18n'; 24export default { 25 props: { 26 backup: { 27 type: String, 28 required: true, 29 }, 30 }, 31 data() { 32 return { 33 $t: useI18n().t, 34 }; 35 }, 36}; 37</script> 38