|
|
@@ -47,7 +47,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { mapMutations } from 'vuex'
|
|
|
export default {
|
|
|
name: 'Navi',
|
|
|
data () {
|
|
|
@@ -60,24 +59,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
- // if(this.$store.state.token){
|
|
|
- // localStorage.setItem('token', this.$store.state.token);
|
|
|
- // }else{
|
|
|
- // if(localStorage.getItem("token")){
|
|
|
- // this.$store.commit('saveToken', localStorage.getItem('token'));
|
|
|
- // }
|
|
|
- // }
|
|
|
- //
|
|
|
- // if(this.$store.state.user && this.$store.state.user.name){
|
|
|
- // localStorage.setItem('user', JSON.stringify(this.$store.state.user));
|
|
|
- // }else{
|
|
|
- // if(localStorage.getItem("user")){
|
|
|
- // this.$store.commit('saveUser', JSON.parse(localStorage.getItem('user')));
|
|
|
- // console.log(JSON.parse(localStorage.getItem('user')));
|
|
|
- // }
|
|
|
- // }
|
|
|
- //
|
|
|
- // this.refresh();
|
|
|
},
|
|
|
|
|
|
methods: {
|