Create a jsconfig.json file in the outermost directory of the project and add the following code
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": [
"src/*",
],
}
},
"exclude": [
"node_modules", "public", "server"
]
}
Effect
And the mouse click method can jump directly