Commit bc7a0fa9 authored by zL's avatar zL

修复一个bug

parent d362df55
...@@ -20,11 +20,11 @@ export default class SearchBar extends Vue { ...@@ -20,11 +20,11 @@ export default class SearchBar extends Vue {
@Prop() value!: string; @Prop() value!: string;
public emitSearch() { public emitSearch() {
this.$emit("search", this.value); this.$emit("search", this.value.trim());
} }
public emitInput(e: any) { public emitInput(e: any) {
this.$emit("input", e.target.value); this.$emit("input", e.target.value.trim());
} }
} }
</script> </script>
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
</li> </li>
<li <li
class="menu-item menu-item__two" class="menu-item menu-item__two"
@click="deleteTheClassification(item)" @click.stop="deleteTheClassification(item)"
> >
删除分类 删除分类
</li> </li>
...@@ -265,6 +265,7 @@ export default { ...@@ -265,6 +265,7 @@ export default {
}, },
}); });
if (res) { if (res) {
this.checkClassification = 0;
this.$message({ this.$message({
type: "success", type: "success",
message: "删除成功!", message: "删除成功!",
...@@ -440,6 +441,7 @@ export default { ...@@ -440,6 +441,7 @@ export default {
} }
}, },
async search() { async search() {
if (this.key === "") return;
const res = await this.$ajax({ const res = await this.$ajax({
url: GO_URLS.searchCustomize, url: GO_URLS.searchCustomize,
type: "post", type: "post",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment