Browse Source

删除返回按钮

master
song 4 years ago
parent
commit
4b805bfdf7
  1. 13
      src/components/HeadNav/HeadNav.vue

13
src/components/HeadNav/HeadNav.vue

@ -1,6 +1,9 @@
<template> <template>
<div class="d-flex justify-space-between pa-3"> <div class="d-flex justify-space-between pa-3">
<div class="d-flex align-center"><a-icon type="left" class="mr-1" @click="back" />考勤管理</div> <div class="d-flex align-center">
<!-- <a-icon type="left" class="mr-1" @click="back" /> -->
考勤管理
</div>
<div class="d-flex align-center"> <div class="d-flex align-center">
<a-button type="primary" size="small" class="mr-3" @click="openSearch"> 搜索 </a-button> <a-button type="primary" size="small" class="mr-3" @click="openSearch"> 搜索 </a-button>
<a-button type="primary" size="small" @click="clockExport"> 导出 </a-button> <a-button type="primary" size="small" @click="clockExport"> 导出 </a-button>
@ -65,10 +68,10 @@ export default {
this.show = !this.show; this.show = !this.show;
}, },
back() { // back() {
window.location.href = document.referrer; // window.location.href = document.referrer;
window.history.back(-1); // window.history.back(-1);
}, // },
}, },
}; };
</script> </script>

Loading…
Cancel
Save