增加vscode断点调试

This commit is contained in:
YeMingfei666 2025-02-10 10:06:55 +08:00
parent bb52898089
commit 6a10005af5
2 changed files with 18 additions and 0 deletions

15
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "针对 localhost 启动 Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
}
]
}

3
vue.config.js Normal file
View File

@ -0,0 +1,3 @@
configureWebpack: {
devtool: process.env.NODE_ENV !== "production" ? "source-map" : "";
}