From 70625f6ea14cbebf99d5ed427ca92ab8de874766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E5=BA=86=E4=BC=9F?= <1208669287@qq.com> Date: Fri, 16 May 2025 16:38:21 +0800 Subject: [PATCH 01/11] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E8=81=8A=E5=A4=A9=E6=B6=88=E5=A4=B1=E5=92=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 14 +++ .vscode/tasks.json | 16 ++++ src/main.ts | 2 + src/pages/index/index.vue | 185 ++++++++++++++++++++++++++++++-------- src/service/index/foo.ts | 1 + 5 files changed, 183 insertions(+), 35 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json 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 @@