add get user info

main
zggsong 2 years ago
parent 0f7e8a4b10
commit a829522c45

BIN
src/.DS_Store vendored

Binary file not shown.

@ -52,6 +52,7 @@ async function login() {
} }
}) })
.catch(function (error) { .catch(function (error) {
console.log('error');
ElMessage.error(error); ElMessage.error(error);
}); });
} }

File diff suppressed because one or more lines are too long

@ -6,6 +6,7 @@ import "element-plus/dist/index.css";
import { createRouter, createWebHistory } from "vue-router"; import { createRouter, createWebHistory } from "vue-router";
import axios from "axios"; import axios from "axios";
axios.defaults.baseURL = '/api' axios.defaults.baseURL = '/api'
axios.defaults.timeout = 3000
const routes = [ const routes = [
{ path: "/login", component: () => import("./components/login/Index.vue") }, { path: "/login", component: () => import("./components/login/Index.vue") },

Loading…
Cancel
Save