diff --git a/src/.DS_Store b/src/.DS_Store index a17372c..c7371cc 100644 Binary files a/src/.DS_Store and b/src/.DS_Store differ diff --git a/src/components/login/Index.vue b/src/components/login/Index.vue index a99388a..d4efff0 100644 --- a/src/components/login/Index.vue +++ b/src/components/login/Index.vue @@ -52,6 +52,7 @@ async function login() { } }) .catch(function (error) { + console.log('error'); ElMessage.error(error); }); } diff --git a/src/components/main/Index.vue b/src/components/main/Index.vue index 56fe157..c0a61de 100644 --- a/src/components/main/Index.vue +++ b/src/components/main/Index.vue @@ -1,17 +1,77 @@ \ No newline at end of file diff --git a/src/main.js b/src/main.js index 5f66656..d6999bd 100644 --- a/src/main.js +++ b/src/main.js @@ -6,6 +6,7 @@ import "element-plus/dist/index.css"; import { createRouter, createWebHistory } from "vue-router"; import axios from "axios"; axios.defaults.baseURL = '/api' +axios.defaults.timeout = 3000 const routes = [ { path: "/login", component: () => import("./components/login/Index.vue") },