数据库问文档重构
This commit is contained in:
@@ -22,9 +22,9 @@ export default {
|
||||
if (!!res.message) {
|
||||
global.vue.$message('请求错误:' + res.message);
|
||||
} else if (res.data.errCode == 400) {
|
||||
global.vue.$message('请先登录');
|
||||
var href = encodeURIComponent(window.location.href);
|
||||
if (global.vue.$router.currentRoute.path != '/user/login') {
|
||||
global.vue.$message('请先登录');
|
||||
global.vue.$router.push({path: '/user/login', query: {redirect: href}});
|
||||
}
|
||||
} else if (res.data.errCode == 402) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div style="padding-top: 50px;">
|
||||
<div style="padding-top: 50px;" @keyup.enter="loginSubmit">
|
||||
<el-form :model="loginParam" :rules="loginRules" ref="loginParam" label-position="left" label-width="0px"
|
||||
class="demo-ruleForm login-container">
|
||||
<h3 class="title">系统登录</h3>
|
||||
|
||||
Reference in New Issue
Block a user