From 007418e0f113375285647b517b204f3f00daa07b Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期四, 25 四月 2024 15:31:51 +0800 Subject: [PATCH] 添加action --- 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