2.0.0(preview)

This commit is contained in:
masnn committed 2020-06-08 13:41:43 +08:00
1 parent d5929d78b1
commit 1c8b62a6d9
33 files changed
+307 -241

No files matched your search

-3
View File
@@ -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) {