|
|
|
@ -176,17 +176,20 @@ const toBannerDetail = (item) => { |
|
|
|
|
|
|
|
// ========== 页面挂载 ========== |
|
|
|
onMounted(() => { |
|
|
|
new Vconsolefrom(); |
|
|
|
let fullUrl = window.location.href; |
|
|
|
// new Vconsolefrom(); |
|
|
|
console.log("执法端 Home onMounted"); |
|
|
|
let fullUrl = window.location.href; |
|
|
|
console.log(fullUrl) |
|
|
|
let code = fullUrl.substring(fullUrl.indexOf("code=") + 5, fullUrl.indexOf("&state=")); |
|
|
|
isLoading.value = useCommon.firstLoad; |
|
|
|
console.log(code) |
|
|
|
// isLoading.value = useCommon.firstLoad; |
|
|
|
getSzyptLoginAuth(code, (success) => { |
|
|
|
console.log("登录成功: ", success.data); |
|
|
|
useCommon.SET_USER_ID(success.data.userId); |
|
|
|
useCommon.SET_TOKEN(success.data.token); |
|
|
|
useCommon.SET_HAS_LAW(success.data.lawOfficer); |
|
|
|
useCommon.SET_ORG_ID(success.data.bureauDept.deptId); |
|
|
|
isLoading.value = false; |
|
|
|
// isLoading.value = false; |
|
|
|
//设置已经初始化 |
|
|
|
useCommon.SET_IS_FIRST_LOAD(false); |
|
|
|
|
|
|
|
|