diff --git a/app/oa/view/work/index.html b/app/oa/view/work/index.html
index b3525ca..7ce84b7 100644
--- a/app/oa/view/work/index.html
+++ b/app/oa/view/work/index.html
@@ -148,7 +148,10 @@
//表头工具栏事件
table.on('toolbar(test)', function(obj){
- addNew();
+ if(obj.event === 'add'){
+ addNew();
+ return;
+ }
});
//监听搜索提交
@@ -227,7 +230,10 @@
//表头工具栏事件
table.on('toolbar(test1)', function(obj){
- addNew();
+ if(obj.event === 'add'){
+ addNew();
+ return;
+ }
});
function addNew(){
diff --git a/composer.json b/composer.json
index c169ca7..c5373c7 100644
--- a/composer.json
+++ b/composer.json
@@ -17,7 +17,7 @@
],
"require": {
"php": ">=7.2.5",
- "topthink/framework": "6.1.1",
+ "topthink/framework": "^6.1",
"topthink/think-filesystem": "^2.0",
"topthink/think-orm": "^2.0",
"topthink/think-multi-app": "^1.0",