Merge pull request #8662 from dataease/pr@perf_pblink_ticket_param

perf: 公共链接ticket参数优化
This commit is contained in:
fit2cloud-chenyw 2024-03-22 18:42:38 +08:00 committed by GitHub
commit 3b8bfc81ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,19 +125,16 @@ export default {
const tempParam = localStorage.getItem('jumpInfoParam')
//
const attachParamsEncode = this.$route.query.attachParams
tempParam && loadingCount++
attachParamsEncode && loadingCount++
let argsObject = null
const args = this.ticketArgs
try {
console.log(args)
argsObject = JSON.parse(this.ticketArgs)
} catch (error) {
console.error(error)
}
const hasArgs = argsObject && Object.keys(argsObject)
tempParam && loadingCount++
(attachParamsEncode || hasArgs) && loadingCount++
if (attachParamsEncode || hasArgs) {
try {
let attachParam = null