Skip to content

Commit

Permalink
fix bug: lookup字段名如果有.,弹出选择时,组件会报错.
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed Nov 23, 2023
1 parent e99fdbe commit 59e56ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { lookupToAmisTreeSelect } from './tree_select';
import * as standardNew from '../../../../schema/standard_new.amis'
import { i18next } from "../../../../i18n";

const keywordsSearchBoxName = `__keywords_lookup`;

export const getReferenceTo = async (field)=>{
let referenceTo = field.reference_to;
if(!referenceTo){
Expand Down Expand Up @@ -256,8 +258,6 @@ export async function lookupToAmisPicker(field, readonly, ctx){

source.data.$term = "$term";
source.data.$self = "$$";

let keywordsSearchBoxName = `__keywords_lookup__${field.name}__to__${refObjectConfig.name}`;

source.requestAdaptor = `
const selfData = JSON.parse(JSON.stringify(api.data.$self));
Expand Down

0 comments on commit 59e56ec

Please sign in to comment.