commit
e808df0285
2 changed files with 8 additions and 1 deletions
|
@ -28,10 +28,17 @@ before_script:
|
||||||
# - node_modules/
|
# - node_modules/
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- lint
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
lint:
|
||||||
|
stage: lint
|
||||||
|
script:
|
||||||
|
- yarn
|
||||||
|
- npm run lint
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
|
|
|
@ -9,7 +9,7 @@ const LoginForm = {
|
||||||
methods: {
|
methods: {
|
||||||
submit () {
|
submit () {
|
||||||
this.$store.dispatch('loginUser', this.user).then(
|
this.$store.dispatch('loginUser', this.user).then(
|
||||||
() => { this.$router.push('/main/friends')},
|
() => {},
|
||||||
(error) => {
|
(error) => {
|
||||||
this.authError = error
|
this.authError = error
|
||||||
this.user.username = ''
|
this.user.username = ''
|
||||||
|
|
Loading…
Reference in a new issue