Commit 63c12505 authored by 郭志伟's avatar 郭志伟

fix(router): 存在hash变化时,不处理参数

parent 4da4a412
......@@ -14,6 +14,7 @@ export default {
const { meta } = to;
// meta?.has?.header && store.commit('CHANGE_HEADER', meta.has.header); // 改变header
if (router.mode === 'history' && !to.hash) {
localStorageParams.forEach(item => {
if (to.query[item] && errorQueryValues.indexOf(to.query[item]) === -1) {
localStorage.set(item, to.query[item]);
......@@ -28,6 +29,7 @@ export default {
Cookies.remove(item);
}
});
}
// (isWechat || isApp || Cookies.get('h') === '0') && store.commit('CHANGE_HEADER', false); // 改变header
// document.body.className = store.state.pay.header ? 'has-header' : '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment