mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-12-15 03:22:05 +08:00
fix: 修复部分网页无法正常跳转的问题
对于网页打开方式为新窗口打开的网页进行修复
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
#ifndef WEBENGINEPAGE_H
|
||||
#define WEBENGINEPAGE_H
|
||||
|
||||
#include <QWebEnginePage>
|
||||
#include <QWebEngineProfile>
|
||||
#include <QObject>
|
||||
|
||||
class WebEnginePage : public QWebEnginePage
|
||||
{
|
||||
public:
|
||||
WebEnginePage(QObject *parent = nullptr);
|
||||
|
||||
protected:
|
||||
QWebEnginePage *createWindow(WebWindowType type) override;
|
||||
|
||||
private slots:
|
||||
void on_urlChanged(const QUrl url);
|
||||
|
||||
};
|
||||
|
||||
#endif // WEBENGINEPAGE_H
|
||||
Reference in New Issue
Block a user