Configure jsconfig.json to enable the project to support methods and annotations introduced by jump @path aliases

About what is jsconfig.json

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

Guess you like

Origin blog.csdn.net/qq_42044542/article/details/121335212