|
@@ -8,8 +8,8 @@
|
|
@close="close"
|
|
@close="close"
|
|
>
|
|
>
|
|
<object
|
|
<object
|
|
- v-if="url"
|
|
|
|
- :data="url"
|
|
|
|
|
|
+ v-if="markStore.answerUrl"
|
|
|
|
+ :data="markStore.answerUrl"
|
|
type="application/pdf"
|
|
type="application/pdf"
|
|
frameBorder="0"
|
|
frameBorder="0"
|
|
scrolling="auto"
|
|
scrolling="auto"
|
|
@@ -22,21 +22,10 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { useMarkStore } from "@/store";
|
|
import { useMarkStore } from "@/store";
|
|
-import { computed } from "vue";
|
|
|
|
|
|
|
|
const markStore = useMarkStore();
|
|
const markStore = useMarkStore();
|
|
|
|
|
|
const close = () => {
|
|
const close = () => {
|
|
markStore.setting.uiSetting["answer.modal"] = false;
|
|
markStore.setting.uiSetting["answer.modal"] = false;
|
|
};
|
|
};
|
|
-
|
|
|
|
-const url = computed(() => {
|
|
|
|
- const answerUrl = markStore.setting.subject.answerUrl || [];
|
|
|
|
- if (answerUrl.length === 0) return "";
|
|
|
|
-
|
|
|
|
- return (
|
|
|
|
- answerUrl.filter((u) => u.paperType === markStore.currentTask?.paperType)[0]
|
|
|
|
- ?.url || ""
|
|
|
|
- );
|
|
|
|
-});
|
|
|
|
</script>
|
|
</script>
|