chenjun 1 ano atrás
pai
commit
f47475b7ca
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      src/components/AuthButton/index.vue

+ 3 - 1
src/components/AuthButton/index.vue

@@ -26,8 +26,10 @@ export default {
 
       //根据服务类型显示按钮类型设置按钮方法 1=查询 2=新增 3=编辑 4=删除 ...其他
       let func = null
-      if (servicetype == 1) {
+      if (servicetype == 0) {
         func = () => context.parent.handleQuery()
+      } else if (servicetype == 1) {
+        func = () => context.parent.handleDetail()
       } else if (servicetype == 2) {
         func = () => context.parent.handleAdd()
       } else if (servicetype == 3) {