From a829522c45b7bfe493258cc84b5a9744a0559e95 Mon Sep 17 00:00:00 2001 From: zggsong Date: Tue, 8 Nov 2022 21:58:49 +0800 Subject: [PATCH] add get user info --- src/.DS_Store | Bin 6148 -> 6148 bytes src/components/login/Index.vue | 1 + src/components/main/Index.vue | 68 +++++++++++++++++++++++++++++++-- src/main.js | 1 + 4 files changed, 66 insertions(+), 4 deletions(-) diff --git a/src/.DS_Store b/src/.DS_Store index a17372c1f92ec91f385dc29743e3e6c32efcd4a4..c7371cc472d5cfa6e22be86fb324076332f9bf26 100644 GIT binary patch delta 69 zcmZoMXffEZi;1b*X7U~;6^_c-6{1ePM;w71DWMdXq@4UD1_lOXVTs8)%zTU+HajvO OW0}~%wwaydFFyc4To*+E delta 69 zcmZoMXffEZi;0PubMhW06%LuQ!u_9mjyM82QbH*%NjdpR3=9m&!V;5pnE4n5HajvO OW0}~%wwaydFFycGE*GW% 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") },