@@ -710,7 +710,7 @@ export default {
710
710
},
711
711
" price" : {
712
712
" min" : localStorage .getItem (' priceSettingMin' ) || 0.1 ,
713
- " max" : localStorage .getItem (' priceSettingMax' ) || ' ' ,
713
+ " max" : localStorage .getItem (' priceSettingMax' ) || null ,
714
714
},
715
715
" collapse" : {}
716
716
}
@@ -1606,7 +1606,8 @@ export default {
1606
1606
let spellDamageTotal = 0
1607
1607
tempStat .forEach ((element , idx , array ) => { // 比對詞綴,抓出隨機數值與詞綴搜尋 ID
1608
1608
let isStatSearch = false
1609
- let statID = element .ratings [element .bestMatchIndex + 1 ].target // 詞綴ID
1609
+ let bestIndex = (element .bestMatchIndex % 2 === 0 ) ? element .bestMatchIndex + 1 : element .bestMatchIndex // 處理判斷到英文詞綴的例外狀況,通常是季初有新詞綴尚未翻譯時才發生
1610
+ let statID = element .ratings [bestIndex].target // 詞綴ID
1610
1611
let apiStatText = element .bestMatch .target // API 抓回來的詞綴字串
1611
1612
let itemStatText = itemDisplayStats[idx] // 物品上的詞綴字串
1612
1613
switch (true ) { // 偽屬性、部分(Local)屬性判斷處理
@@ -2029,8 +2030,8 @@ export default {
2029
2030
delete this .searchJson .query .filters .misc_filters .filters .ilvl // 刪除物品等級 filter
2030
2031
} else if (this .itemLevel .isSearch && this .isSearchJson ) {
2031
2032
this .searchJson .query .filters .misc_filters .filters .ilvl = { // 增加物品等級最小值 filter
2032
- " min" : this .itemLevel .min ,
2033
- " max" : this .itemLevel .max ? this .itemLevel .max : ' '
2033
+ " min" : this .itemLevel .min ? this . itemLevel . min : null ,
2034
+ " max" : this .itemLevel .max ? this .itemLevel .max : null
2034
2035
}
2035
2036
}
2036
2037
},
@@ -2041,8 +2042,8 @@ export default {
2041
2042
this .searchJson .query .filters .socket_filters = { // 增加物品連線 filter
2042
2043
" filters" : {
2043
2044
" links" : {
2044
- " min" : this .itemLinked .min ? this .itemLinked .min : ' ' ,
2045
- " max" : this .itemLinked .max ? this .itemLinked .max : ' '
2045
+ " min" : this .itemLinked .min ? this .itemLinked .min : null ,
2046
+ " max" : this .itemLinked .max ? this .itemLinked .max : null
2046
2047
}
2047
2048
}
2048
2049
}
@@ -2124,8 +2125,8 @@ export default {
2124
2125
this .itemExBasic .chosenObj = value
2125
2126
},
2126
2127
priceSettingChange () {
2127
- this .searchJson_Def .query .filters .trade_filters .filters .price .min = this .storePriceMin
2128
- this .searchJson_Def .query .filters .trade_filters .filters .price .max = this .storePriceMax
2128
+ this .searchJson_Def .query .filters .trade_filters .filters .price .min = this .storePriceMin ? this . storePriceMin : null
2129
+ this .searchJson_Def .query .filters .trade_filters .filters .price .max = this .storePriceMax ? this . storePriceMax : null
2129
2130
if (this .priceSetting .chosenObj .prop ) {
2130
2131
this .searchJson_Def .query .filters .trade_filters .filters .price .option = this .priceSetting .chosenObj .prop
2131
2132
} else {
@@ -2266,8 +2267,8 @@ export default {
2266
2267
delete this .searchJson .query .filters .map_filters .filters .map_tier // 刪除地圖階級 filter
2267
2268
} else if (this .mapLevel .isSearch && this .isSearchJson ) {
2268
2269
this .searchJson .query .filters .map_filters .filters .map_tier = { // 指定地圖階級最小 / 最大值 filter
2269
- " min" : this .mapLevel .min ,
2270
- " max" : this .mapLevel .max
2270
+ " min" : this .mapLevel .min ? this . mapLevel . min : null ,
2271
+ " max" : this .mapLevel .max ? this . mapLevel . max : null
2271
2272
}
2272
2273
}
2273
2274
},
@@ -2295,8 +2296,8 @@ export default {
2295
2296
delete this .searchJson .query .filters .misc_filters .filters .gem_level // 刪除技能等級 filter
2296
2297
} else if (this .gemLevel .isSearch && this .isSearchJson ) {
2297
2298
this .searchJson .query .filters .misc_filters .filters .gem_level = { // 指定技能等級最小 / 最大值 filter
2298
- " min" : this .gemLevel .min ,
2299
- " max" : this .gemLevel .max
2299
+ " min" : this .gemLevel .min ? this . gemLevel . min : null ,
2300
+ " max" : this .gemLevel .max ? this . gemLevel . max : null
2300
2301
}
2301
2302
}
2302
2303
},
@@ -2305,8 +2306,8 @@ export default {
2305
2306
delete this .searchJson .query .filters .misc_filters .filters .quality // 刪除技能品質 filter
2306
2307
} else if (this .gemQuality .isSearch && this .isSearchJson ) {
2307
2308
this .searchJson .query .filters .misc_filters .filters .quality = { // 指定技能品質最小 / 最大值 filter
2308
- " min" : this .gemQuality .min ,
2309
- " max" : this .gemQuality .max
2309
+ " min" : this .gemQuality .min ? this . gemQuality . min : null ,
2310
+ " max" : this .gemQuality .max ? this . gemQuality . max : null
2310
2311
}
2311
2312
}
2312
2313
},
@@ -2493,8 +2494,8 @@ export default {
2493
2494
let vm = this
2494
2495
this .baseUrl = this .isGarenaSvr ? ' https://web.poe.garena.tw' : ' https://www.pathofexile.com'
2495
2496
if (! this .isGarenaSvr ) {
2496
- this .leagues .option = this .gggLeagues
2497
- this .leagues .chosenL = this .gggLeagues [0 ]
2497
+ this .leagues .option = Object . assign ([], this .gggLeagues );
2498
+ this .leagues .chosenL = this .leagues . option [0 ]
2498
2499
this .mapBasic .option = Object .assign ([], this .gggMapBasic );
2499
2500
this .gemBasic .option = Object .assign ([], this .gggGemBasic );
2500
2501
} else {
0 commit comments