Skip to content

Commit 72006e2

Browse files
authored
fix(#2328): Error when rendering external view when 'iframe' property is set to true (#2335)
1 parent 29df260 commit 72006e2

File tree

1 file changed

+5
-3
lines changed
  • spring-boot-admin-server-ui/src/main/frontend/views/external

1 file changed

+5
-3
lines changed

spring-boot-admin-server-ui/src/main/frontend/views/external/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
import { h } from 'vue';
17+
1618
import './style.css';
1719

1820
import sbaConfig from '@/sba-config';
@@ -26,9 +28,9 @@ const addIframeView = (viewRegistry, { url, label, order }) => {
2628
order,
2729
component: {
2830
inheritAttrs: false,
29-
render(createElement) {
30-
return createElement('div', { class: 'external-view' }, [
31-
createElement('iframe', { attrs: { src: url } }),
31+
render() {
32+
return h('div', { class: 'external-view' }, [
33+
h('iframe', { src: url }),
3234
]);
3335
},
3436
},

0 commit comments

Comments
 (0)