mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
2.0.0(preview)
This commit is contained in:
1 parent
d5929d78b1
commit
1c8b62a6d9
33 files changed
+307
-241
No files matched your search
@@ -18,7 +18,6 @@ const page = new NamedPage('manage_module', () => {
|
||||
});
|
||||
addModuleDialog.clear = function () {
|
||||
this.$dom.find('[name="url"]').val('');
|
||||
this.$dom.find('[name="id"]').val('');
|
||||
return this;
|
||||
};
|
||||
|
||||
@@ -26,12 +25,10 @@ const page = new NamedPage('manage_module', () => {
|
||||
const action = await addModuleDialog.clear().open();
|
||||
if (action !== 'ok') return;
|
||||
const url = addModuleDialog.$dom.find('[name="url"]').val();
|
||||
const id = addModuleDialog.$dom.find('[name="id"]').val();
|
||||
try {
|
||||
await request.post('', {
|
||||
operation: 'install',
|
||||
url,
|
||||
id,
|
||||
});
|
||||
window.location.reload();
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user