<script> export default { methods: { open() { const url = require(“../../我是图片.png”) this.$alert('<img src = "+ ' url '+" />', 'HTML 片段', { dangerouslyUseHTMLString: true }); } } } </script>