diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..40f965b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Debug h5", + "type": "chrome", + "runtimeArgs": ["--remote-debugging-port=9222"], + "request": "launch", + "url": "http://localhost:5173", + "webRoot": "${workspaceFolder}", + "preLaunchTask": "uni:h5" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..e8c343f --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,16 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "uni:h5", + "type": "npm", + "script": "dev --devtools", + "isBackground": true, + "problemMatcher": "$vite", + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} diff --git a/src/main.ts b/src/main.ts index 36cdea4..7e78507 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,6 +9,8 @@ import 'element-plus/dist/index.css' import App from './App.vue' import { prototypeInterceptor, requestInterceptor, routeInterceptor } from './interceptors' import store from './store' +// import VConsole from 'vconsole' +// new VConsole() export function createApp() { const app = createSSRApp(App) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 57da3a8..fd4e8fd 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -10,18 +10,24 @@