|
|
@@ -136,7 +136,7 @@ const handleSearch = (params) => {
|
|
|
Object.assign(search, params)
|
|
|
search.login = params.login && Number(params.login)
|
|
|
search.platform = loginOptions.find(item => item.value == params.login)?.platform || ''
|
|
|
- let startTime = search.date[0].replace(/-/g, "/").split(" ")[0];
|
|
|
+ let startTime = search?.date?.[0]?.replace(/-/g, '/')?.split(' ')[0] || ''
|
|
|
let start = new Date(startTime).getTime();
|
|
|
let thresholdDate = new Date("2020/10/01").getTime();
|
|
|
let shouldUseSharding =
|
|
|
@@ -212,7 +212,9 @@ onLoad(async (e) => {
|
|
|
// 此时 loginOptions 一定有值了
|
|
|
nextTick(() => {
|
|
|
// 优先跳转传参,没有就默认第一个
|
|
|
- searchParams.value.login = targetLogin ?? loginOptions?.value?.[0]?.value ?? null
|
|
|
+ searchParams.value.login = targetLogin ?? loginOptions[0]?.value ?? null
|
|
|
+ console.log(searchParams.value,222,loginOptions?.value?.[0]?.value,loginOptions[0]?.value);
|
|
|
+
|
|
|
handleSearch(searchParams.value)
|
|
|
})
|
|
|
})
|