From 5aa3a9bdd9001e53f245efd40b0d39263caa4bfc Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期六, 19 十一月 2022 17:27:53 +0800 Subject: [PATCH] 数据管理页面添加,修改 --- src/components/login.vue | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/login.vue b/src/components/login.vue index 0b35e91..40fcf55 100644 --- a/src/components/login.vue +++ b/src/components/login.vue @@ -152,7 +152,7 @@ </template> <script> -// import { login } from '../utils/api' +import { getPerms } from '../api/api'; import validCode from './verificationCode.vue'; import { mapActions } from 'vuex'; @@ -214,7 +214,16 @@ this.loading = true; this.login(this.loginForm) .then((response) => { - this.$router.push('/mochaitmo'); + getPerms().then((res) => { + if (res.code == 200) { + this.$store.commit('getPermsEntity', res.result); + if (res.result.length != 0) { + this.$router.push('/'); + } + } else { + console.log('error submit!!'); + } + }); this.loading = false; //璋冪敤褰曟帴鍙� -- Gitblit v1.9.3