From 3ab2c26776f234a760bbef6cb259686811154a91 Mon Sep 17 00:00:00 2001 From: li-chx Date: Sat, 3 May 2025 22:18:45 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=AE=8C=E6=88=90=E5=AE=9E?= =?UTF-8?q?=E9=AA=8C=E9=83=A8=E5=88=86=E6=89=93=E7=A3=A8=EF=BC=8C=E5=87=86?= =?UTF-8?q?=E5=A4=87=E5=A4=A7=E4=BD=9C=E4=B8=9A=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pages/base/index.vue | 52 +---------- app/pages/base/index/articleManage/index.vue | 11 +++ app/pages/base/index/calendar/index.vue | 21 +++-- app/pages/base/index/home/index.vue | 93 ++++++++++++++++--- app/stores/user.ts | 3 + public/avatar.jpg | Bin 517155 -> 0 bytes 6 files changed, 107 insertions(+), 73 deletions(-) create mode 100644 app/pages/base/index/articleManage/index.vue delete mode 100644 public/avatar.jpg diff --git a/app/pages/base/index.vue b/app/pages/base/index.vue index 237eb94..42502b6 100644 --- a/app/pages/base/index.vue +++ b/app/pages/base/index.vue @@ -90,32 +90,6 @@ router.push('/base/' + val); }); - async function sendTest() { - await useLoginStore().login(); - try { - // const response = await $fetch('/api/login/test', { - // method: 'GET', - // }); - const { $http } = useNuxtApp(); - useNuxtApp().$http.GET('/test'); - console.log($http); // 检查是否为 undefined - console.log($fetch); - $http.GET('/file/test').catch(() => { - console.log('error'); - $http - .POST('/login/login', { - username: 'admin', - password: 'password', - }) - .then(async () => { - const result = await $http.GET('/api/file/test'); - console.log(result); - }); - }); - } catch (err) { - console.log(err); - } - } onMounted(() => setCollapsed(useWindowSize().width.value)); onMounted(async () => { await store.getUserInfo(); @@ -144,31 +118,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -193,7 +143,7 @@ 用户管理 - + 文件管理 diff --git a/app/pages/base/index/articleManage/index.vue b/app/pages/base/index/articleManage/index.vue new file mode 100644 index 0000000..2f86b47 --- /dev/null +++ b/app/pages/base/index/articleManage/index.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/app/pages/base/index/calendar/index.vue b/app/pages/base/index/calendar/index.vue index afa1325..08d3e2a 100644 --- a/app/pages/base/index/calendar/index.vue +++ b/app/pages/base/index/calendar/index.vue @@ -1,6 +1,6 @@