mirror of
https://github.com/lencx/Noi.git
synced 2024-10-26 20:57:35 +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,15 +299,9 @@ class TongyiAsk extends NoiAsk {
|
|||||||
static url = 'https://tongyi.aliyun.com/qianwen';
|
static url = 'https://tongyi.aliyun.com/qianwen';
|
||||||
|
|
||||||
static submit() {
|
static submit() {
|
||||||
const inputElement = document.querySelector('textarea');
|
const btn = document.querySelector('div[class*=operateBtn]');
|
||||||
if (inputElement) {
|
|
||||||
const nextElement = inputElement.nextElementSibling;
|
|
||||||
if (nextElement) {
|
|
||||||
const btn = nextElement.querySelector('div[class^="chatBtn"]');
|
|
||||||
if (btn) btn.click();
|
if (btn) btn.click();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class GroqAsk extends NoiAsk {
|
class GroqAsk extends NoiAsk {
|
||||||
|
Loading…
Reference in New Issue
Block a user