mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-17 08:54:19 +08:00
优化浏览器设置Cookie、执行脚本和等待元素的功能
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
<q-icon name="code" />
|
||||
</template>
|
||||
<template v-slot:append>
|
||||
<q-btn dense flat icon="arrow_drop_down">
|
||||
<q-btn dense flat icon="menu">
|
||||
<q-menu>
|
||||
<q-list dense>
|
||||
<q-item
|
||||
@@ -256,6 +256,9 @@ export default defineComponent({
|
||||
handleInput(val, index) {
|
||||
this.inputValue = val;
|
||||
const item = this.allItems[index];
|
||||
if (val in this.modelValue && val !== item.key) {
|
||||
return;
|
||||
}
|
||||
const dict = { ...this.modelValue };
|
||||
delete dict[item.key];
|
||||
dict[val] = item.value;
|
||||
@@ -265,6 +268,9 @@ export default defineComponent({
|
||||
this.inputValue = "";
|
||||
const value = val?.value || val;
|
||||
const item = this.allItems[index];
|
||||
if (value in this.modelValue && value !== item.key) {
|
||||
return;
|
||||
}
|
||||
const dict = { ...this.modelValue };
|
||||
delete dict[item.key];
|
||||
dict[value] = item.value;
|
||||
|
||||
Reference in New Issue
Block a user