From 0ffe55e911b1fb76141c426a849db06de0979522 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sun, 4 Feb 2024 17:39:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=B8=A4=E4=B8=AA=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/src/stores/config.js | 2 +- site/src/stores/user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/src/stores/config.js b/site/src/stores/config.js index 8254428cc..92212efb8 100644 --- a/site/src/stores/config.js +++ b/site/src/stores/config.js @@ -15,7 +15,7 @@ export const useConfigStore = defineStore("config", { }, actions: { async fetchConfig() { - this.config = await useMyFetch("/api/config/configs"); + this.config = await useHttpGet("/api/config/configs"); }, }, }); diff --git a/site/src/stores/user.js b/site/src/stores/user.js index 9dd571fdc..12ad47ee1 100644 --- a/site/src/stores/user.js +++ b/site/src/stores/user.js @@ -11,7 +11,7 @@ export const useUserStore = defineStore("user", { }, actions: { async fetchCurrent() { - this.user = await useMyFetch("/api/user/current"); + this.user = await useHttpGet("/api/user/current"); return this.user; }, async signin(body) {