feat:更新logo等
This commit is contained in:
parent
9013b0b40f
commit
d0c18bf857
BIN
public/logo.jpg
BIN
public/logo.jpg
Binary file not shown.
Before Width: | Height: | Size: 200 KiB After Width: | Height: | Size: 118 KiB |
@ -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({
|
||||
|
@ -0,0 +1,8 @@
|
||||
<template>
|
||||
<div>首页</div>
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
</script>
|
||||
<style scoped lang='scss'>
|
||||
</style>
|
@ -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('错误!');
|
||||
|
Loading…
x
Reference in New Issue
Block a user