保存进度!
This commit is contained in:
parent
47c5327c54
commit
1c25e18d0f
@ -3,7 +3,7 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2022-12-14 15:23:54
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2022-12-25 20:27:50
|
||||
* @LastEditTime: 2022-12-26 16:50:02
|
||||
* @FilePath: \admin_system\src\views\account\Login.vue
|
||||
* @Description:
|
||||
*
|
||||
@ -43,9 +43,10 @@
|
||||
</el-row>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" class="el-button-block" @click="login">{{ current_menu === "login" ? "登录" :
|
||||
"注册"
|
||||
}}</el-button>
|
||||
<el-button type="primary" class="el-button-block" @click="login" :disabled="submit_btn_disable"
|
||||
:loading="submit_btn_loading">
|
||||
{{ current_menu === "login" ? "登录" : "注册" }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
@ -73,6 +74,8 @@ export default {
|
||||
],
|
||||
current_menu: "",
|
||||
staffInfo: null,
|
||||
submit_btn_disable: false,
|
||||
submit_btn_loading: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@ -91,6 +94,9 @@ export default {
|
||||
},
|
||||
login()
|
||||
{
|
||||
this.submit_btn_disable = true;
|
||||
this.submit_btn_loading = true;
|
||||
|
||||
const userInfo = {
|
||||
p13account: "588",
|
||||
password: "Kane@19831",
|
||||
@ -120,6 +126,9 @@ export default {
|
||||
center: true,
|
||||
});
|
||||
}
|
||||
|
||||
this.submit_btn_disable = false;
|
||||
this.submit_btn_loading = false;
|
||||
})
|
||||
.catch((error) =>
|
||||
{
|
||||
@ -130,6 +139,9 @@ export default {
|
||||
type: "error",
|
||||
center: true,
|
||||
});
|
||||
|
||||
this.submit_btn_disable = false;
|
||||
this.submit_btn_loading = false;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user