Commit a61aec4e29728a6200b2e2317a1071bcf87afdf4
1 parent
1e6bc70d
1.重新刷新浏览器地址的时候,清除浏览器缓存
Showing
1 changed file
with
1 additions
and
1 deletions
src/models/app.js
| @@ -8,7 +8,7 @@ import { Toast } from 'antd-mobile'; | @@ -8,7 +8,7 @@ import { Toast } from 'antd-mobile'; | ||
| 8 | import * as commonFunc from '../components/Common/commonFunc';/* 通用单据方法 */ | 8 | import * as commonFunc from '../components/Common/commonFunc';/* 通用单据方法 */ |
| 9 | 9 | ||
| 10 | if (location.pathname === '/' || location.pathname === '/login') { | 10 | if (location.pathname === '/' || location.pathname === '/login') { |
| 11 | - // localStorage.clear(); | 11 | + localStorage.clear(); |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | export default { | 14 | export default { |