yuanyuan 3 lat temu
rodzic
commit
c8103c014a
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      src/main/jmrh/src/views/mine/editInfo.vue

+ 5 - 1
src/main/jmrh/src/views/mine/editInfo.vue

@@ -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(() => {