mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-22 05:44:13 +00:00
Update loading features to login page
This commit is contained in:
@@ -42,6 +42,8 @@
|
||||
{{ $t('login') }}
|
||||
</v-button>
|
||||
|
||||
<!-- <el-button type="primary" @click="openFullScreen2">As a service</el-button> -->
|
||||
|
||||
<!-- GitHub Login Button -->
|
||||
<login-with-github/>
|
||||
</div>
|
||||
@@ -78,6 +80,17 @@ export default {
|
||||
|
||||
methods: {
|
||||
async login () {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Logging in',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
setTimeout(() => {
|
||||
loading.close();
|
||||
}, 1500);
|
||||
|
||||
|
||||
// Submit the form.
|
||||
const { data } = await this.form.post('/api/login')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user