mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): 路由声明重构,添加composables,BaseLayout进行中,文件夹规范
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
<template>
|
||||
<div>多级菜单-二级菜单</div>
|
||||
<div>
|
||||
<n-card title="多级菜单-二级菜单" class="h-full shadow-sm rounded-16px"></n-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
<script setup lang="ts">
|
||||
import { NCard } from 'naive-ui';
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
@ -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);
|
||||
|
@ -36,13 +36,14 @@ import { NForm, NFormItem, NInput, NSpace, NCheckbox, NButton, useNotification }
|
||||
import type { FormInst, FormRules } from 'naive-ui';
|
||||
import { EnumLoginModule } from '@/enum';
|
||||
import { useAuthStore } from '@/store';
|
||||
import { useRouterChange, useRouteQuery, useLoading } from '@/hooks';
|
||||
import { useRouterPush, useRouteQuery } from '@/composables';
|
||||
import { useLoading } from '@/hooks';
|
||||
import { setToken } from '@/utils';
|
||||
import { OtherLogin } from './components';
|
||||
|
||||
const notification = useNotification();
|
||||
const auth = useAuthStore();
|
||||
const { toHome, toCurrentLogin, toLoginRedirectUrl } = useRouterChange();
|
||||
const { toHome, toCurrentLogin, toLoginRedirectUrl } = useRouterPush();
|
||||
const { loginRedirectUrl } = useRouteQuery();
|
||||
const { loading, startLoading, endLoading } = useLoading();
|
||||
|
||||
|
@ -30,10 +30,11 @@
|
||||
import { reactive, ref } from 'vue';
|
||||
import { NForm, NFormItem, NInput, NSpace, NCheckbox, 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);
|
||||
|
@ -29,10 +29,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);
|
||||
|
@ -25,7 +25,7 @@ import { computed } from 'vue';
|
||||
import type { Component } from 'vue';
|
||||
import { NCard, NGradientText } from 'naive-ui';
|
||||
import { SystemLogo, LoginBg } from '@/components';
|
||||
import { useAppTitle } from '@/hooks';
|
||||
import { useAppTitle } from '@/composables';
|
||||
import { EnumLoginModule } from '@/enum';
|
||||
import { mixColor } from '@/utils';
|
||||
import type { LoginModuleType } from '@/interface';
|
||||
|
Reference in New Issue
Block a user