refactor(projects): 单独一级路由相关逻辑重构

This commit is contained in:
Soybean
2022-01-05 11:55:54 +08:00
parent b93b80cb4b
commit ab9a6a2f39
11 changed files with 87 additions and 26 deletions

View File

@ -1,5 +1,5 @@
<template>
<div></div>
<div>403</div>
</template>
<script setup lang="ts"></script>

View File

@ -1,5 +1,5 @@
<template>
<div>NotFound</div>
<div>500</div>
</template>
<script setup lang="ts"></script>

View File

@ -9,7 +9,7 @@
<n-space :vertical="true" :size="24">
<div class="flex-y-center justify-between">
<n-checkbox v-model:checked="rememberMe">记住我</n-checkbox>
<n-button :text="true">忘记密码</n-button>
<n-button :text="true" @click="toLoginModule('reset-pwd')">忘记密码</n-button>
</div>
<n-button
type="primary"

View File

@ -16,7 +16,7 @@
<main class="pt-24px">
<h3 class="text-18px text-primary font-medium">{{ activeModule.label }}</h3>
<div class="pt-24px">
<transition>
<transition name="fade-slide" mode="out-in" appear>
<component :is="activeModule.component" />
</transition>
</div>