【解决方法】在vue项目中可以直接通过import {Util}方式引入,然后用Util.setMask调用,具体可参考 https://iclient.supermap.io/dev/docs/openlayers/Util.html#.setMask 详细添加部分如下: