mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-29 20:32:44 +08:00
添加空文本校验
This commit is contained in:
parent
413d89183a
commit
b16e7d69a2
@ -37,6 +37,7 @@
|
|||||||
style="width: 280px"
|
style="width: 280px"
|
||||||
autofocus
|
autofocus
|
||||||
v-model="$root.profile.quickFileTag"
|
v-model="$root.profile.quickFileTag"
|
||||||
|
@blur="$root.profile.quickFileTag || ($root.profile.quickFileTag = '文件')"
|
||||||
type="text"
|
type="text"
|
||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
@ -68,6 +69,8 @@
|
|||||||
input-class="text-center"
|
input-class="text-center"
|
||||||
style="width: 280px"
|
style="width: 280px"
|
||||||
v-model="$root.profile.quickUrlTag"
|
v-model="$root.profile.quickUrlTag"
|
||||||
|
@blur="$root.profile.quickUrlTag || ($root.profile.quickUrlTag = '网址')"
|
||||||
|
|
||||||
type="text"
|
type="text"
|
||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
|
@ -289,7 +289,9 @@ export default {
|
|||||||
allQuickCommandTags() {
|
allQuickCommandTags() {
|
||||||
let allTags = _.union(
|
let allTags = _.union(
|
||||||
...Object.values(this.allQuickCommands).map((x) => x.tags)
|
...Object.values(this.allQuickCommands).map((x) => x.tags)
|
||||||
).concat(["未分类", "来自分享"]);
|
)
|
||||||
|
.concat(["未分类", "来自分享"])
|
||||||
|
.filter((x) => x);
|
||||||
if (this.commandSearchKeyword?.length > 1) allTags.push("搜索结果");
|
if (this.commandSearchKeyword?.length > 1) allTags.push("搜索结果");
|
||||||
return allTags;
|
return allTags;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user