This commit is contained in:
xiaozhiyong
2023-02-22 17:37:16 +08:00
parent c856bb5318
commit dcffab1d2a
5 changed files with 28 additions and 86 deletions

View File

@@ -59,14 +59,14 @@ export default {
if (query !== "") {
this.loading = true;
let params = {};
if (
this.$utils
.typeJudgment(this.config.autocompleteKey)
.includes("Object")
) {
let type = this.$utils.typeJudgment(this.config.autocompleteKey);
if (!type.includes("Object") && !type.includes("String")) return;
if (type.includes("Object")) {
params[this.config.autocompleteKey.key] = query;
params["enableMark"] = this.config.autocompleteKey.enableMark;
} else {
}
if (type.includes("String")) {
this.config.autocompleteKey
? (params[this.config.autocompleteKey] = query)
: (params["queryTypeGet"] = query);