Просмотр исходного кода

Merge branch 'master' of ssh://172.16.23.188:9022/tian-group/skyeye-admin-fe

sunhongyao341504 2 лет назад
Родитель
Сommit
452a718f28
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/views/system-config/template/TitleCommon.vue

+ 4 - 2
src/views/system-config/template/TitleCommon.vue

@@ -37,7 +37,7 @@
   import { onMounted, ref, watch } from 'vue';
   import { ElMessageBox, FormInstance } from 'element-plus';
   import DrawerCommonVue, { FormModelCommon } from './DrawerCommon.vue';
-
+  import { useKeyPress } from 'vue-hooks-plus';
   export type CreateType = '添加模板' | '修改模板';
   const props = defineProps<{
     type: string;
@@ -65,7 +65,9 @@
     size: number;
     page: number;
   }
-
+  useKeyPress('enter', () => {
+    findDataByName(ruleFormRef.value);
+  });
   const titleDrawer = ref(false);
   watch(
     () => props.drawer,