feat:更新logo等

This commit is contained in:
fangyunong 2025-07-01 17:50:27 +08:00
parent 9013b0b40f
commit d0c18bf857
4 changed files with 23 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 118 KiB

View File

@ -1,5 +1,7 @@
import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import Login from "@/views/login/index.vue"; //登录组件
import Layout from "@/views/layout/index.vue"; //首页布局
import CallBack from "@/views/login/OauthCallBack.vue"; //反馈页面
const routes: Array<RouteRecordRaw> = [
{
@ -7,6 +9,16 @@ const routes: Array<RouteRecordRaw> = [
name: "Login",
component: Login,
},
{
path: "/callback",
name: "CallBack",
component: CallBack,
},
{
path: "/layout",
name: "Layout",
component: Layout,
},
];
const router = createRouter({

View File

@ -0,0 +1,8 @@
<template>
<div>首页</div>
</template>
<script setup lang='ts'>
</script>
<style scoped lang='scss'>
</style>

View File

@ -13,11 +13,10 @@ const router = useRouter();
const message = useMessage();
const oSomethingWithToken = async () => {
try {
console.log('进来了吗??');
token.value = await getAccessTokenSilently();
setTimeout(() => {
message.success('登录成功!');
router.push('/layout');
}, 5000);
} catch (error) {
router.push('/');
message.error('错误!');