"watermark-dom": "2.3.0"
import watermark from "watermark-dom";
export default {
name: "AppMain",
mounted() {
// 加载水印
const username = this.$store.state.user.name;
watermark.load({ watermark_txt: username + "水印" });
},
computed: {
.....
}
};
powered by kaifamiao