|
@@ -792,7 +792,7 @@
|
|
|
<script>
|
|
|
$('.modal').on('shown.bs.modal', function () {
|
|
|
const height = $(this)[0].scrollHeight
|
|
|
- const scrollBox = $('div[class="col-8 modal-height-500"]')
|
|
|
+ const scrollBox = $(this).find('div[class="col-8 modal-height-500"]')
|
|
|
// 450是modal没有滚动条时的最大高度,超过则出现滚动条,需要自动下拉到底部
|
|
|
if (scrollBox.length && scrollBox[0].scrollHeight > 450) {
|
|
|
scrollBox.scrollTop(height);
|