Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kloping committed Feb 19, 2025
1 parent 20416d7 commit b7e9e9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/api/lyric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,5 @@ export function getNearst(time: number, nextn: number = 3, lyrics: Lyric[]) {
ul = ee;
}
}

return outs
}
3 changes: 1 addition & 2 deletions src/axios.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import axios from "axios";
import {toast} from "@/utils/utils";
import Cookie from "js-cookie";

const service = axios.create({
Expand Down Expand Up @@ -29,7 +28,7 @@ service.interceptors.response.use(function (response) {

export default service;

export function getToken() : string {
export function getToken(): string {
let token = Cookie.get("token");
if (!token) {
token = Cookie.get("authorization")
Expand Down
6 changes: 5 additions & 1 deletion src/pages/login.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<el-row class="min-h-screen">
<el-row id="main0" class="min-h-screen">
<el-col :lg="16" :md="12" class="bg-opacity-30 bg-zinc-500 flex items-center justify-center">
<div style="margin-left: 20px;margin-right: 20px">
<div class="font-bold text-5xl text-light-50">kloping's blog</div>
Expand Down Expand Up @@ -160,4 +160,8 @@ function loginGithub() {
onMounted(() => {
loginGithub()
})
onMounted(() => {
document.getElementById("main0").scrollIntoView();
})
</script>

0 comments on commit b7e9e9d

Please sign in to comment.