perf: 公共链接ticket参数优化

This commit is contained in:
fit2cloud-chenyw 2024-03-22 18:41:23 +08:00
parent 03bb016843
commit 40ca38eddc

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