<template>
  <qm-dialog
    v-if="store.setting.uiSetting['answer.modal']"
    top="10vh"
    width="1200px"
    height="600px"
    title="答案"
    @close="close"
  >
    <object
      :data="store.setting.subject.answerUrl"
      type="application/pdf"
      frameBorder="0"
      scrolling="auto"
      height="100%"
      width="100%"
      toolbar="1"
    />
  </qm-dialog>
</template>

<script setup lang="ts">
import { store } from "@/store/store";

const close = () => {
  store.setting.uiSetting["answer.modal"] = false;
};
</script>
