Commit bdae3e8b by tang

feat: router.push无效问题

parent dc346cd6
...@@ -4,10 +4,26 @@ ...@@ -4,10 +4,26 @@
</div> </div>
</template> </template>
<script>
export default {
mounted() {
if (!!window.ActiveXObject || 'ActiveXObject' in window) {
window.addEventListener('hashchange', () => {
let currentPath = window.location.hash.slice(1)
if (this.$route.path !== currentPath) {
this.$router.push(currentPath);// 主动更改路由界面
}
}, false);
}
}
}
</script>
<style> <style>
.container-fluid { .container-fluid {
padding: 0 !important; padding: 0 !important;
} }
.el-input__inner::-webkit-input-placeholder { .el-input__inner::-webkit-input-placeholder {
color: #888 !important color: #888 !important
} }
......
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