Browse Source

完善刷新业务前端时功能报错的bug

master
yxt_djz 3 years ago
parent
commit
11bd6cc4df
  1. 2
      anrui-base/anrui-base-ui/src/main.js
  2. 2
      anrui-buscenter/anrui-buscenter-ui/src/main.js
  3. 2
      anrui-buscenter/anrui-finmanage-ui/src/main.js
  4. 2
      anrui-management/anrui-management-ui/src/main.js
  5. 3
      anrui-scm/anrui-scm-ui/src/main.js

2
anrui-base/anrui-base-ui/src/main.js

@ -52,6 +52,8 @@ if (token) {
function GetQueryString(name) {
var one = window.location.href.indexOf('?token=') + 7
if(one<7)
return null;
var two = window.location.href.lastIndexOf('&') //+ 1
var data = window.location.href.substr(one)
if (two > one) {

2
anrui-buscenter/anrui-buscenter-ui/src/main.js

@ -54,6 +54,8 @@ if (token) {
function GetQueryString(name) {
var one = window.location.href.indexOf('?token=') + 7
if(one<7)
return null;
var two = window.location.href.lastIndexOf('&') //+ 1
var data = window.location.href.substr(one)
if (two > one) {

2
anrui-buscenter/anrui-finmanage-ui/src/main.js

@ -41,6 +41,8 @@ if (token) {
function GetQueryString(name) {
var one = window.location.href.indexOf('?token=') + 7
if(one<7)
return null;
var two = window.location.href.lastIndexOf('&') //+ 1
var data = window.location.href.substr(one)
if (two > one) {

2
anrui-management/anrui-management-ui/src/main.js

@ -40,6 +40,8 @@ let href = window.location.href
function GetQueryString(name) {
var one = window.location.href.indexOf('?token=') + 7
if(one<7)
return null;
var two = window.location.href.lastIndexOf('&') //+ 1
var data = window.location.href.substr(one)
if (two > one) {

3
anrui-scm/anrui-scm-ui/src/main.js

@ -45,7 +45,6 @@ Vue.config.productionTip = false
let token = null
token = GetQueryString('token')
if (token) {
setStorage(token)
let href = window.location.href
@ -104,6 +103,8 @@ function getUserInfo() {
getUserInfo()
function GetQueryString(name) {
var one = window.location.href.indexOf('?token=') + 7
if(one<7)
return null;
var two = window.location.href.lastIndexOf('&') //+ 1
var data = window.location.href.substr(one)
if (two > one) {

Loading…
Cancel
Save