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 @@