|
@@ -2,20 +2,33 @@
|
|
<qm-dialog
|
|
<qm-dialog
|
|
v-if="store.setting.uiSetting['answer.paper.modal']"
|
|
v-if="store.setting.uiSetting['answer.paper.modal']"
|
|
ref="dialog"
|
|
ref="dialog"
|
|
|
|
+ width="700px"
|
|
|
|
+ height="400px"
|
|
title="答案"
|
|
title="答案"
|
|
>
|
|
>
|
|
- my answer
|
|
|
|
|
|
+ <object
|
|
|
|
+ :data="answerPDFUrl"
|
|
|
|
+ type="application/pdf"
|
|
|
|
+ frameBorder="0"
|
|
|
|
+ scrolling="auto"
|
|
|
|
+ height="100%"
|
|
|
|
+ width="100%"
|
|
|
|
+ toolbar="1"
|
|
|
|
+ />
|
|
</qm-dialog>
|
|
</qm-dialog>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
-import { defineComponent, ref } from "vue";
|
|
|
|
|
|
+import { computed, defineComponent, ref } from "vue";
|
|
import { store } from "./store";
|
|
import { store } from "./store";
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: "AnswerModal",
|
|
name: "AnswerModal",
|
|
setup() {
|
|
setup() {
|
|
- return { store };
|
|
|
|
|
|
+ const answerPDFUrl = computed(() => {
|
|
|
|
+ return store.setting.fileServer + store.setting.subject.answerUrl;
|
|
|
|
+ });
|
|
|
|
+ return { store, answerPDFUrl };
|
|
},
|
|
},
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|