移动端地址拼接规则:
https://aflow.dingtalk.com/dingtalk/mobile/homepage.htm?dd_share=false&showmenu=false&dd_progress=false&back=native&corpid=${corpid}&swfrom=${来源}#/approval?procInstId=${实例id}
pc端拼接规则:
dingtalk://dingtalkclient/action/openapp?redirect_url=https%3A%2F%2Faflow.dingtalk.com%2Fdingtalk%2Fpc%2Fquery%2Fpchomepage.htm%3Fcorpid%3D${corpid}%26swfrom%3D${来源}%23%2Fapproval%3FprocInstId%3D${实例id}
corpid:必填,企业的corpid
procInstId:必填,审批实例的id(发起审批的接口里会返回实例id)
swfrom:可以不填,也可以标识
import * as dd from "dingtalk-jsapi";
dd.biz.util.openLink({url: `https://aflow.dingtalk.com/dingtalk/mobile/homepage.htm?dd_share=false&showmenu=false&dd_progress=false&back=native&corpid=${process.env.VUE_APP_CORP_ID}&swfrom=${swfrom}#/approval?procInstId=${params.procInstId}`,success: () => {},fail: () => {},complete: () => {}
});