Commit 70c1bef8 by mingyuan

shoudl fail err

parent 88b5ea09
<div id="dingding">test1</div>
<script>
alert('sss')
</script>
import * as dd from 'dingtalk-jsapi'
alert('dddd')
dd.ready(() => {
dd.runtime.permission.requestAuthCode({
corpId: 'ding9f5ed2cec249700e35c2f4657eb6378f',
......@@ -9,6 +8,9 @@ dd.ready(() => {
div.innerText = info.code
console.log(info)
alert(info.code)
},
onFail(res) {
alert('dd error: ' + JSON.stringify(res))
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment