mirror of
https://github.com/lencx/Noi.git
synced 2024-08-17 15:50:58 +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,16 +299,10 @@ 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"]');
|
||||
const btn = document.querySelector('div[class*=operateBtn]');
|
||||
if (btn) btn.click();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class GroqAsk extends NoiAsk {
|
||||
static name = 'Groq';
|
||||
|
Loading…
Reference in New Issue
Block a user