diff --git a/src/App.vue b/src/App.vue index d1c9c4e..2a6fb2d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -23,8 +23,8 @@ whenever(ctrl_s, () => {}) whenever(ctrl_r, () => {}) onMounted(async () => { - // const data = await getMyProfile() - // username.value = data + const data = await getMyProfile() + username.value = data }) watch(authed, (v) => { diff --git a/src/api.ts b/src/api.ts index 9db7ab6..517e029 100644 --- a/src/api.ts +++ b/src/api.ts @@ -2,7 +2,7 @@ import axios from "axios" import { router } from "./router" const http = axios.create({ - baseURL: "http://localhost:8000/api", + baseURL: "https://webapi.xuyue.cc/api", xsrfCookieName: "xsrfCookieName", xsrfHeaderName: "X-CSRFTOKEN", withCredentials: true, diff --git a/src/components/Editors.vue b/src/components/Editors.vue index ae916cb..6e8c964 100644 --- a/src/components/Editors.vue +++ b/src/components/Editors.vue @@ -68,9 +68,11 @@ diff --git a/src/components/Login.vue b/src/components/Login.vue index 1d0f2ba..0cfa74a 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -7,10 +7,14 @@ > - + - + - 登录 + 登录