1234567891011121314151617181920212223242526272829 |
- export let SKIP_SSO_URL_QUERY = { key: 'skipsso', val: '1' };
- export let locationUrl = 'http://' + window.location.host + '/';
- export let openSso='true';
- /**
- * 获取url地址参数
- * @param paraName
- */
- export 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) {
- return arr[1];
- }
- }
- return '';
- } else {
- return '';
- }
- }
|