mirror of
https://github.com/lencx/Noi.git
synced 2024-07-14 23:30:41 +03:00
Merge pull request #151 from northernCold/fix-noi-ask
fix: tongyi submit doesn't work
This commit is contained in:
commit
9787604e25
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user