fix: when path is / only ,there is no need to rearrange the parameters

This commit is contained in:
YiFang Xiao 2023-10-28 13:22:21 +08:00
parent 6e7779bd80
commit 87ae7899ae

View file

@ -110,7 +110,7 @@ QNetworkReply * ArticleNetworkAccessManager::getArticleReply( QNetworkRequest co
if ( req.url().scheme() == "gdlookup" ) {
QString path = url.path();
if ( !path.isEmpty() ) {
if ( path.size()>1 ) {
url.setPath( "" );
Utils::Url::addQueryItem( url, "word", path.mid( 1 ) );