mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-04-09 14:08:23 +08:00
Support paste url to add task
This commit is contained in:
@@ -103,6 +103,10 @@ const defaultParams = {
|
||||
};
|
||||
|
||||
export default Vue.extend({
|
||||
props: {
|
||||
url: String,
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
dialog: false,
|
||||
@@ -157,6 +161,21 @@ export default Vue.extend({
|
||||
this.userParams.urls = null;
|
||||
},
|
||||
},
|
||||
|
||||
watch: {
|
||||
url(v) {
|
||||
if (!v) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.dialog) {
|
||||
Vue.set(this.userParams, 'urls', v);
|
||||
this.dialog = true;
|
||||
}
|
||||
|
||||
this.$emit('input', null);
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user