思路:
1、現在store中的index.js中存儲token
2、在app.vue中判斷是否存儲token,在login.vue中使用
3、清除token的時候要先清除vuex中的token,然后在清除本地的token
補充:公共的字體圖標可以放在app.vue中的style中


使用vuex中的方法

調用接口數據並傳參

在app.vue中進行判斷是否有token

轉載路徑: https://blog.csdn.net/weixin_46137478/article/details/105713307
