| | |
| | | |
| | | Api.getSystemConfig(param).then(res => { |
| | | if (res.status) { |
| | | let _LongParam = res.LongParam && window.decodeURIComponent(window.atob(res.LongParam)) |
| | | try { |
| | | _LongParam = JSON.parse(_LongParam) |
| | | } catch (e) { |
| | | _LongParam = '' |
| | | let _LongParam = '' |
| | | if (res.LongParam) { |
| | | try { |
| | | _LongParam = JSON.parse(window.decodeURIComponent(window.atob(res.LongParam))) |
| | | } catch (e) { |
| | | console.warn('Parse Failure') |
| | | _LongParam = '' |
| | | } |
| | | } |
| | | |
| | | _menu.LongParam = _LongParam |
| | |
| | | let _config = '' |
| | | if (result.LongParam) { |
| | | try { |
| | | _config = window.decodeURIComponent(window.atob(result.LongParam)) |
| | | _config = JSON.parse(_config) |
| | | _config = JSON.parse(window.decodeURIComponent(window.atob(result.LongParam))) |
| | | _config.type = 'user' |
| | | } catch (e) { |
| | | console.warn('Parse Failure') |
| | | _config = '' |
| | | } |
| | | } |