feat: 添加 eslint-plugin-unicorn 依赖,更新 ESLint 配置以支持新规则
This commit is contained in:
@ -4,8 +4,8 @@ import { defineBasicLoader } from 'unplugin-vue-router/data-loaders/basic';
|
||||
|
||||
export const usePageData = defineBasicLoader(
|
||||
'DataLoadersId',
|
||||
async (route, ...otherArgs) => {
|
||||
console.log('[DefineLoaderFn]', 'otherArgs :>> ', otherArgs);
|
||||
async (route, ...otherArguments) => {
|
||||
console.log('[DefineLoaderFn]', 'otherArgs :>>', otherArguments);
|
||||
await new Promise((resolve) => setTimeout(resolve, 777));
|
||||
return { idFromPreviousPage: route.params.id, someOtherData: 'someOtherData' };
|
||||
},
|
||||
|
Reference in New Issue
Block a user