Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Commit 022cc49

Browse files
committed
fix: #52 #47 dont clear url when switching
1 parent c278081 commit 022cc49

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pages/index.vue

+7-6
Original file line numberDiff line numberDiff line change
@@ -796,13 +796,14 @@ export default {
796796
this.params.size = `${this.params.width}x${this.params.height}`;
797797
},
798798
selectedType() {
799-
this.params.url = null;
799+
if(this.params.urls && this.params.url && this.selectedType === 'multiple-imgs') {
800+
this.params.urls = [
801+
{
802+
url: this.params.url,
803+
},
804+
];
805+
}
800806
this.result = null;
801-
this.params.urls = [
802-
{
803-
url: null,
804-
},
805-
];
806807
},
807808
},
808809
};

0 commit comments

Comments
 (0)