From 69b7429909a40a43d5691a2eeb3893919074510f Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Sun, 22 Jun 2025 10:04:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?style:=20=E4=BF=AE=E6=94=B9=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=85=8D=E7=BD=AE=E5=92=8C=E4=BB=A3=E7=A0=81=E7=89=87?= =?UTF-8?q?=E6=AE=B5=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将首页图标类型从 'wot' 改为 'uiLib' - 调整 Vue3 代码片段中 template 和 script 的顺序 - 格式化代码片段的缩进和换行 --- .vscode/vue3.code-snippets | 26 +++++++++++++++++++------- src/pages.json | 2 +- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.vscode/vue3.code-snippets b/.vscode/vue3.code-snippets index 621b9e2..51bab9f 100644 --- a/.vscode/vue3.code-snippets +++ b/.vscode/vue3.code-snippets @@ -27,12 +27,12 @@ " },", "}", "\n", - "\n", "\n", + "\n", "\n", @@ -41,16 +41,28 @@ "Print unibest style": { "scope": "vue", "prefix": "st", - "body": ["\n"], + "body": [ + "\n" + ], }, "Print unibest script": { "scope": "vue", "prefix": "sc", - "body": ["\n"], + "body": [ + "\n" + ], }, "Print unibest template": { "scope": "vue", "prefix": "te", - "body": ["\n"], + "body": [ + "\n" + ], }, -} +} \ No newline at end of file diff --git a/src/pages.json b/src/pages.json index 9b32bb1..1fe326b 100644 --- a/src/pages.json +++ b/src/pages.json @@ -30,7 +30,7 @@ "pagePath": "pages/index/index", "text": "首页", "icon": "home", - "iconType": "wot" + "iconType": "uiLib" }, { "iconPath": "static/tabbar/example.png", From 2000eda414e9825e1c51ab9d162b6c6c3389bd58 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Sun, 22 Jun 2025 10:07:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=E7=A6=81=E7=94=A8prettier?= =?UTF-8?q?=E5=B9=B6=E5=90=AF=E7=94=A8eslint=E4=BD=9C=E4=B8=BA=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=A0=BC=E5=BC=8F=E5=8C=96=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 8cdc821..f56793f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -56,25 +56,25 @@ "eslint.config.mjs": "tsconfig.json,.commitlintrc.*,.prettier*,.editorconfig,.commitlint.cjs,.eslint*" }, - // 保存的时候自动格式化 - "prettier.enable": true, - "editor.formatOnSave": true, - // 开启自动修复 - "editor.codeActionsOnSave": { - "source.fixAll": "explicit", - "source.fixAll.eslint": "explicit", - "source.fixAll.stylelint": "explicit" - }, + // // 保存的时候自动格式化 + // "prettier.enable": true, + // "editor.formatOnSave": true, + // // 开启自动修复 + // "editor.codeActionsOnSave": { + // "source.fixAll": "explicit", + // "source.fixAll.eslint": "explicit", + // "source.fixAll.stylelint": "explicit" + // }, // Disable the default formatter, use eslint instead - // "prettier.enable": false, - // "editor.formatOnSave": false, + "prettier.enable": false, + "editor.formatOnSave": false, // Auto fix - // "editor.codeActionsOnSave": { - // "source.fixAll.eslint": "explicit", - // "source.organizeImports": "never" - // }, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit", + "source.organizeImports": "never" + }, // Silent the stylistic rules in you IDE, but still auto fix them "eslint.rules.customizations": [