From 656d72c983be25f3f967578b4d0373e1f77ecc88 Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期五, 26 四月 2024 14:33:30 +0800 Subject: [PATCH] 枚举接口调用更改 --- Source/ProjectWeb/src/actions/base/BaseAction.js | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/ProjectWeb/src/actions/base/BaseAction.js b/Source/ProjectWeb/src/actions/base/BaseAction.js index 0a9fda7..93c5db0 100644 --- a/Source/ProjectWeb/src/actions/base/BaseAction.js +++ b/Source/ProjectWeb/src/actions/base/BaseAction.js @@ -13,8 +13,7 @@ if(button.url && button.url!='null'){ //鏈夐厤缃產ction璺緞锛屼娇鐢ㄨ矾寰勫搴旂殑js - let buttonParse = parseEventByUrl(button.url,options,false); - import("../"+buttonParse.jsPath+".js").then(module => { + import("../"+button.url+".js").then(module => { module.doAction(options); }) }else { @@ -38,8 +37,8 @@ if(validatenull(options.paramVOS.context)) { options.paramVOS.context = options.paramVOS.content; } - if(handlers[button.actionVO.id]){ - handlers[button.actionVO.id]() + if(handlers[button.actionVO.id.toLowerCase()]){ + handlers[button.actionVO.id.toLowerCase()]() }else{ Vue.prototype.$message.error('鏈壘鍒板搴攁ction锛岃閲嶆柊閰嶇疆鎸夐挳锛�'); } -- Gitblit v1.9.3