diff --git a/template/admin/src/components/uploadImg/index.vue b/template/admin/src/components/uploadImg/index.vue index c12f1fa8a..30b78b50f 100644 --- a/template/admin/src/components/uploadImg/index.vue +++ b/template/admin/src/components/uploadImg/index.vue @@ -5,8 +5,8 @@ append-to-body :modal-append-to-body="false" :visible.sync="uploadModal" - width="1024px" - :fullscreen="!isPage" + :width="isIframe ? '100%' : '1024px'" + :fullscreen="isIframe" @close="closed" >
@@ -152,6 +152,9 @@ export default { isPage: { default: false, }, + isIframe: { + default: false, + }, }, watch: { uploadModal: { @@ -409,6 +412,9 @@ export default { };