refactor(projects): 路由声明重构,添加composables,BaseLayout进行中,文件夹规范

This commit is contained in:
Soybean
2021-11-19 01:33:36 +08:00
parent 1c5fdca596
commit 1e84d13d54
75 changed files with 668 additions and 565 deletions

View File

@ -23,10 +23,11 @@
import { reactive, ref } from 'vue';
import { NForm, NFormItem, NInput, NSpace, NButton, useMessage } from 'naive-ui';
import type { FormInst } from 'naive-ui';
import { useRouterChange, useSmsCode } from '@/hooks';
import { useRouterPush } from '@/composables';
import { useSmsCode } from '@/hooks';
const message = useMessage();
const { toCurrentLogin } = useRouterChange();
const { toCurrentLogin } = useRouterPush();
const { label, isCounting, start } = useSmsCode();
const formRef = ref<(HTMLElement & FormInst) | null>(null);