In vue2 and 3, < template > route completion is affected by those configurations

The @ / path of img tag is complete. Sometimes it will prompt, sometimes it will not. I don't know which configuration has affected it



"compilerOptions": {
"target": "es5",
"module": "commonjs",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"noImplicitAny": false,
"allowJs": true,
"types": [
// "webpack-env",
// "jest"
"baseUrl": ".",
"paths": {
"@/*": [
"lib": [
"include": [
"exclude": [



webpack to configure:auto

评论操作 固定链接

I have searched the Internet for a long time, but I can't find an explanation. Sometimes the path will prompt, sometimes it won't

评论操作 固定链接

Please could you elaborate on this? Do you mean that URLs like "@/assets/..." are resolved, but no completion is provided when entering them?

评论操作 固定链接


Yes, but after the input is completed, delete the last paragraph and enter again, and you will be prompted