【fix ESLint】src/cas

This commit is contained in:
zhaoxiao
2023-03-03 09:40:41 +08:00
parent 97ebcd8415
commit 7ccb1c9788
+3 -5
View File
@@ -1,11 +1,12 @@
import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types'
import store from '@/store'
/**
* 单点登录
*/
const init = (callback) => {
if (process.env.VUE_APP_SSO == 'true') {
if (process.env.VUE_APP_SSO === 'true') {
console.log('-------单点登录开始-------')
const token = Vue.ls.get(ACCESS_TOKEN)
const st = getUrlParam('ticket')
@@ -32,15 +33,12 @@ const SSO = {
function getUrlParam (paraName) {
const url = document.location.toString()
const arrObj = url.split('?')
if (arrObj.length > 1) {
const arrPara = arrObj[1].split('&')
let arr
for (let i = 0; i < arrPara.length; i++) {
arr = arrPara[i].split('=')
if (arr != null && arr[0] == paraName) {
if (arr != null && arr[0] === paraName) {
return arr[1]
}
}