diff --git a/.prettierrc.json b/.prettierrc.json index c81dab1..3ae727a 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -4,5 +4,5 @@ "tabWidth": 2, "singleQuote": true, "printWidth": 120, - "trailingComma": "es5" + "trailingComma": "all" } diff --git a/src/pages/data-loaders.[id].vue b/src/pages/data-loaders.[id].vue index 32a9ea5..968a297 100644 --- a/src/pages/data-loaders.[id].vue +++ b/src/pages/data-loaders.[id].vue @@ -18,7 +18,7 @@ export const usePageData = defineBasicLoader( // - `immediate`:数据在加载后立即提交。 // - `after-load`:数据在所有非惰性加载器加载完成后提交。 commit: 'immediate', - } + }, ); @@ -46,7 +46,7 @@ watch( console.debug(message); } }, - { immediate: true } + { immediate: true }, );