mirror of
https://github.com/lencx/Noi.git
synced 2025-12-15 17:40:48 +01:00
Merge pull request #151 from northernCold/fix-noi-ask
fix: tongyi submit doesn't work
This commit is contained in:
@@ -299,14 +299,8 @@ class TongyiAsk extends NoiAsk {
|
||||
static url = 'https://tongyi.aliyun.com/qianwen';
|
||||
|
||||
static submit() {
|
||||
const inputElement = document.querySelector('textarea');
|
||||
if (inputElement) {
|
||||
const nextElement = inputElement.nextElementSibling;
|
||||
if (nextElement) {
|
||||
const btn = nextElement.querySelector('div[class^="chatBtn"]');
|
||||
if (btn) btn.click();
|
||||
}
|
||||
}
|
||||
const btn = document.querySelector('div[class*=operateBtn]');
|
||||
if (btn) btn.click();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user