@@ -162,7 +162,11 @@ export default {
},
methods: {
submit() {
- if (this.$store.state.userInfo) {
+ if (
+ this.$store.state.userInfo &&
+ localStorage.getItem('token') != undefined &&
+ localStorage.getItem('token') != null
+ ) {
this.$refs.form
.validate()
.then(() => {