diff --git a/layouts/admin.vue b/layouts/admin.vue
new file mode 100644
index 0000000..e39d935
--- /dev/null
+++ b/layouts/admin.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/middleware/auth.ts b/middleware/auth.ts
index 2de3f8b..0235451 100644
--- a/middleware/auth.ts
+++ b/middleware/auth.ts
@@ -1,6 +1,6 @@
export default defineNuxtRouteMiddleware(async (to, from) => {
const auth = useCookie("auth");
- if (auth.value === undefined) {
+ /* if (auth.value === undefined) {
ElMessage("未登录或cookie未开启");
return navigateTo("/user/login", { replace: true });
} else {
@@ -23,5 +23,5 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
} else {
//console.log(auth.value);
}
- }
+ } */
});
diff --git a/pages/admin/applications/index.vue b/pages/admin/applications/index.vue
new file mode 100644
index 0000000..a953f9c
--- /dev/null
+++ b/pages/admin/applications/index.vue
@@ -0,0 +1,26 @@
+
+
+ 登录日志
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/admin/index.vue b/pages/admin/index.vue
index db08402..fa474b3 100644
--- a/pages/admin/index.vue
+++ b/pages/admin/index.vue
@@ -3,51 +3,21 @@
管理界面
-
-
-
-
-
-
-
-
-
-
+
+
+ {{}}
+
+
+
diff --git a/pages/admin/loginlogs/index.vue b/pages/admin/loginlogs/index.vue
index cf34ce6..a953f9c 100644
--- a/pages/admin/loginlogs/index.vue
+++ b/pages/admin/loginlogs/index.vue
@@ -20,4 +20,7 @@
import type { LoginLog } from "~/types/Log";
const data: LoginLog[] = await $fetch("/api/admin/loginlogs");
const tableData = ref(data);
+definePageMeta({
+ layout: "admin",
+});
diff --git a/pages/admin/settings/index.vue b/pages/admin/settings/index.vue
new file mode 100644
index 0000000..a953f9c
--- /dev/null
+++ b/pages/admin/settings/index.vue
@@ -0,0 +1,26 @@
+
+
+ 登录日志
+
+
+
+
+
+
+
+
+
+
+
+