优化代码逻辑,修复潜在播放问题
This commit is contained in:
@@ -35,8 +35,8 @@ const verifyQueryParams = async(to, from, next) => {
|
||||
|
||||
if (_source == null || _type == null) {
|
||||
const setting = await getSearchSetting()
|
||||
if (!_source) _source = setting.source
|
||||
if (!_type) _type = setting.type
|
||||
_source ??= setting.source
|
||||
_type ??= setting.type
|
||||
|
||||
next({
|
||||
path: to.path,
|
||||
|
||||
Reference in New Issue
Block a user