fix
This commit is contained in:
@@ -523,7 +523,13 @@ export default defineComponent({
|
|||||||
//跳转到首页
|
//跳转到首页
|
||||||
turnToHomePage() {
|
turnToHomePage() {
|
||||||
this.getLang()
|
this.getLang()
|
||||||
|
// this.$router.push("/home");
|
||||||
|
// console.log(window.location.search.substring(1));
|
||||||
|
if(window.location.search.substring(1) == 'oldHis'){
|
||||||
|
this.$router.push("/oldHistory");
|
||||||
|
}else{
|
||||||
this.$router.push("/home");
|
this.$router.push("/home");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//获取当前语言
|
//获取当前语言
|
||||||
getLang(){
|
getLang(){
|
||||||
|
|||||||
@@ -145,6 +145,12 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
let userInfo:any = getCookie("userInfo")
|
let userInfo:any = getCookie("userInfo")
|
||||||
|
let str = window.location.search.substring(1)
|
||||||
|
if(!userInfo){
|
||||||
|
this.$router.push(`/login?${str}`).then(()=>{
|
||||||
|
window.location.reload();
|
||||||
|
});
|
||||||
|
}
|
||||||
this.userInfo = JSON.parse(userInfo);
|
this.userInfo = JSON.parse(userInfo);
|
||||||
let historyTable:any = this.$refs.historyTable
|
let historyTable:any = this.$refs.historyTable
|
||||||
this.historyTableHeight = historyTable.clientHeight - 130
|
this.historyTableHeight = historyTable.clientHeight - 130
|
||||||
|
|||||||
Reference in New Issue
Block a user