|
@@ -16,7 +16,7 @@
|
|
|
class="image-item"
|
|
|
>
|
|
|
<img :src="getFileUrl(url)" :alt="`${sindex + 1}`" />
|
|
|
- <div class="image-action">
|
|
|
+ <div class="image-action" v-if="!cantChangeImg">
|
|
|
<import-btn
|
|
|
upload-url="/api/admin/scan/answer/slice/update"
|
|
|
:format="['jpg', 'png', 'jpeg']"
|
|
@@ -75,6 +75,9 @@ import axios from "axios";
|
|
|
defineOptions({
|
|
|
name: "SliceImage",
|
|
|
});
|
|
|
+const props = withDefaults(defineProps<{ cantChangeImg?: boolean }>(), {
|
|
|
+ cantChangeImg: false,
|
|
|
+});
|
|
|
|
|
|
const userStore = useUserStore();
|
|
|
const dataCheckStore = useDataCheckStore();
|