perf: 公共链接ticket参数优化
This commit is contained in:
parent
03bb016843
commit
40ca38eddc
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user