更新
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
label-position="left"
|
||||
>
|
||||
<div class="title-container">
|
||||
<h3 class="title">Login Form</h3>
|
||||
<h3 class="title">油批客户管理平台</h3>
|
||||
</div>
|
||||
|
||||
<el-form-item prop="username">
|
||||
@@ -19,7 +19,7 @@
|
||||
<el-input
|
||||
ref="username"
|
||||
v-model="loginForm.username"
|
||||
placeholder="Username"
|
||||
placeholder="用户名"
|
||||
name="username"
|
||||
type="text"
|
||||
tabindex="1"
|
||||
@@ -36,7 +36,7 @@
|
||||
ref="password"
|
||||
v-model="loginForm.password"
|
||||
:type="passwordType"
|
||||
placeholder="Password"
|
||||
placeholder="密码"
|
||||
name="password"
|
||||
tabindex="2"
|
||||
auto-complete="on"
|
||||
@@ -56,11 +56,6 @@
|
||||
@click.native.prevent="handleLogin('')"
|
||||
>Login</el-button
|
||||
>
|
||||
|
||||
<div class="tips">
|
||||
<span style="margin-right: 20px">username: admin</span>
|
||||
<span> password: any</span>
|
||||
</div>
|
||||
</el-form>
|
||||
|
||||
<el-dialog
|
||||
@@ -111,7 +106,7 @@ export default {
|
||||
};
|
||||
return {
|
||||
loading: false,
|
||||
passwordType: "",
|
||||
passwordType: "password",
|
||||
companyList: [],
|
||||
companySelectDialog: false,
|
||||
|
||||
@@ -156,9 +151,10 @@ export default {
|
||||
.then((res) => {
|
||||
this.companyList = res.data;
|
||||
this.companySelectDialog = true;
|
||||
return;
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
localStorage.setItem("token", res.data.accessToken);
|
||||
this.$router.replace("/");
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user