This commit is contained in:
X1627315083
2024-09-13 10:07:00 +08:00
parent 0d398baf6e
commit beaed40f15
2 changed files with 2 additions and 6 deletions

View File

@@ -25,10 +25,8 @@ flexible()
import { getCookie, setCookie } from "@/tool/cookie";
router.beforeEach((to, from, next) => {
if(to.name == "login"){
if(window.location.search.substring(1) != 'oldHis'){
isMurmur()
}
if((to.name == "login" && !from.name) || (to.name == 'SquareWorks' && !from.name) || (to.name == 'works' && !from.name)){
isMurmur()
}
next();
});