mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 分析页更新,添加关于页面
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="flex-center flex-col w-full h-full">
|
||||
<div class="flex-center flex-col wh-full">
|
||||
<exception-svg type="403" :color="theme.themeColor" />
|
||||
<router-link to="/">
|
||||
<n-button type="primary">回到首页</n-button>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="flex-center flex-col w-full h-full">
|
||||
<div class="flex-center flex-col wh-full">
|
||||
<exception-svg type="404" :color="theme.themeColor" />
|
||||
<router-link to="/">
|
||||
<n-button type="primary">回到首页</n-button>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="flex-center flex-col w-full h-full">
|
||||
<div class="flex-center flex-col wh-full">
|
||||
<exception-svg type="500" :color="theme.themeColor" />
|
||||
<router-link to="/">
|
||||
<n-button type="primary">回到首页</n-button>
|
||||
|
@ -35,18 +35,20 @@ import { reactive, ref } from 'vue';
|
||||
import { NForm, NFormItem, NInput, NSpace, NCheckbox, NButton, useNotification } from 'naive-ui';
|
||||
import type { FormInst, FormRules } from 'naive-ui';
|
||||
import { EnumLoginModule } from '@/enum';
|
||||
import { useAuthStore } from '@/store';
|
||||
import { useRouterChange, useRouteQuery, useLoading } from '@/hooks';
|
||||
import { setToken } from '@/utils';
|
||||
import { OtherLogin } from './components';
|
||||
|
||||
const notification = useNotification();
|
||||
const auth = useAuthStore();
|
||||
const { toHome, toCurrentLogin, toLoginRedirectUrl } = useRouterChange();
|
||||
const { loginRedirectUrl } = useRouteQuery();
|
||||
const { loading, startLoading, endLoading } = useLoading();
|
||||
const notification = useNotification();
|
||||
|
||||
const formRef = ref<(HTMLElement & FormInst) | null>(null);
|
||||
const model = reactive({
|
||||
phone: '15100000000',
|
||||
phone: '151****3876',
|
||||
pwd: '123456'
|
||||
});
|
||||
const rules: FormRules = {
|
||||
@ -78,9 +80,10 @@ function handleSubmit(e: MouseEvent) {
|
||||
} else {
|
||||
toHome();
|
||||
}
|
||||
const { userName } = auth.userInfo;
|
||||
notification.success({
|
||||
title: '登录成功!',
|
||||
content: '欢迎回来,Soybean!',
|
||||
content: `欢迎回来,${userName}!`,
|
||||
duration: 3000
|
||||
});
|
||||
}, 1000);
|
||||
|
@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div class="login-bg relative flex-center w-full h-full">
|
||||
<div class="login-bg relative flex-center wh-full">
|
||||
<shadow-card class="w-400px p-40px !rounded-20px z-10">
|
||||
<header class="flex-y-center justify-between">
|
||||
<div class="w-70px h-70px rounded-35px overflow-hidden">
|
||||
<system-logo class="w-full h-full" :fill="true" :color="theme.themeColor" />
|
||||
<system-logo class="wh-full" :fill="true" :color="theme.themeColor" />
|
||||
</div>
|
||||
<n-gradient-text type="primary" :size="28">{{ title }}</n-gradient-text>
|
||||
</header>
|
||||
|
Reference in New Issue
Block a user