Explorar el Código

fix: lefthook config

xingyu4j hace 3 semanas
padre
commit
03fcecadcc
Se han modificado 2 ficheros con 5 adiciones y 7 borrados
  1. 4 6
      lefthook.yml
  2. 1 1
      playground/src/views/system/menu/list.vue

+ 4 - 6
lefthook.yml

@@ -44,17 +44,15 @@
 pre-commit:
   parallel: true
   commands:
-    install:
-      run: pnpm install
+    lint:
+      run: pnpm lint
+    checkType:
+      run: pnpm check:type
 
 post-merge:
   commands:
     install:
       run: pnpm install
-    lint:
-      run: pnpm lint
-    checkType:
-      run: pnpm check:type
 
 commit-msg:
   commands:

+ 1 - 1
playground/src/views/system/menu/list.vue

@@ -115,7 +115,7 @@ function onDelete(row: SystemMenuApi.SystemMenu) {
     <FormDrawer @success="onRefresh" />
     <Grid>
       <template #toolbar-tools>
-        <Button type="primary">
+        <Button type="primary" @click="onCreate">
           <Plus class="size-5" />
           {{ $t('ui.actionTitle.create', [$t('system.menu.name')]) }}
         </Button>