From 94e97086ea8ca7450e0683994d6548ac491bb35c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 12 Dec 2025 19:17:50 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BB=A3=E7=A0=81=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E7=9A=84=E8=B0=83=E6=95=B4=EF=BC=88else=E3=80=81catch?= =?UTF-8?q?=E3=80=81finally=20=E7=AD=89=E4=B8=8D=E6=8D=A2=E8=A1=8C?= =?UTF-8?q?=EF=BC=89=20feat=EF=BC=9A=E8=B0=83=E6=95=B4=20mp=20=E7=9A=84=20?= =?UTF-8?q?WX=5FAPPID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env | 2 +- eslint.config.mjs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/env/.env b/env/.env index 9225e17..0b6c165 100644 --- a/env/.env +++ b/env/.env @@ -2,7 +2,7 @@ VITE_APP_TITLE = '芋道管理系统' VITE_APP_PORT = 9000 VITE_UNI_APPID = '__UNI__D1E5001' -VITE_WX_APPID = 'wxa2abb91f64032a2b' +VITE_WX_APPID = 'wx63c280fe3248a3e7' # h5部署网站的base,配置到 manifest.config.ts 里的 h5.router.base # https://uniapp.dcloud.net.cn/collocation/manifest.html#h5-router diff --git a/eslint.config.mjs b/eslint.config.mjs index c62f529..045b049 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -32,6 +32,7 @@ export default uniHelper({ 'jsdoc/require-returns-description': 'off', 'ts/no-empty-object-type': 'off', 'no-extend-native': 'off', + 'style/brace-style': 'off', // 参考 https://github.com/antfu/eslint-config/issues/322 帖子:关闭此规则,使用下面的 brace-style 规则 'vue/singleline-html-element-content-newline': [ 'error', { @@ -39,9 +40,14 @@ export default uniHelper({ }, ], // vue SFC 调换顺序改这里 + // 解释 by 芋艿:为什么 script 开始放在 template 前面:https://yb.tencent.com/s/1fYYlgBopLAT 'vue/block-order': ['error', { order: [['script', 'template'], 'style'], }], + // add by 芋艿:else、catch、} 等,不换行:https://zh-hans.eslint.org/docs/latest/rules/brace-style + 'brace-style': ['error', '1tbs', { + allowSingleLine: true, + }], }, formatters: { /**