Commit b7aa4a55 authored by TTS Kieu Tuan Anh's avatar TTS Kieu Tuan Anh

fix ident eslint

parent 2a857f54
...@@ -115,23 +115,23 @@ export default { ...@@ -115,23 +115,23 @@ export default {
{ {
email: this.email, email: this.email,
password: this.password, password: this.password,
status: this.status, status: this.status
}) })
localStorage.setItem("token", resp.data.data.bearer_token) localStorage.setItem('token', resp.data.data.bearer_token)
this.$auth.$storage.setUniversal("token", resp.data.data.bearer_token) this.$auth.$storage.setUniversal('token', resp.data.data.bearer_token)
this.$auth.$storage.setUniversal("userName", resp.data.data.name) this.$auth.$storage.setUniversal('userName', resp.data.data.name)
this.$auth.$storage.setUniversal("loggedIn", "true") this.$auth.$storage.setUniversal('loggedIn', 'true')
if (resp.status == "200") { if (resp.status === 200) {
this.$toast.success("Successfully authenticated", { this.$toast.success('Successfully authenticated', {
duration: 2000, duration: 2000,
}); });
this.$router.push("home"); this.$router.push('home');
} }
} catch (e) { } catch (e) {
this.$toast.error("Username or Password not valid", { this.$toast.error('Username or Password not valid', {
duration: 2000, duration: 2000
}); });
this.$router.push("/login"); this.$router.push('/login')
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment