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: { /**