Wrap url in dingtalk.
npm install -S @jswork/next-to-dingtalk-url
import '@jswork/next-to-dingtalk-url';
const url = 'https://www.mipengine.org/';
const dingUrl = nx.toDingtalkUrl(url);
console.log(dingUrl);
// dingtalk://dingtalkclient/page/link?pc_slide=true&url=https%3A%2F%2Fwww.mipengine.org%2F
Code released under the MIT license.