For automatic buried points based on the button permissions, only supports Vue2.
npm i -D auto-track-webpack-plugin
import { AutoTrackPlugin } from 'auto-track-webpack-plugin';
const { AutoTrackPlugin } = require('auto-track-webpack-plugin');
vue.config.js
module.exports = defineConfig({
configureWebpack: {
plugins: [new AutoTrackPlugin({ buriedPoint: 'this.$common.buriedFun' })]
}
});
The buried point function will insert the inside of the click event based on the button permissions.