提交 e35b76db 作者: 方治民

test: 注释一些示例首页的接口调试代码

上级 faa8732d
...@@ -15,26 +15,26 @@ ...@@ -15,26 +15,26 @@
// 关闭启动页并检查更新 // 关闭启动页并检查更新
closeSplashscreenAndChechUpgrade() closeSplashscreenAndChechUpgrade()
// test API // // test API
API.example.hello // API.example.hello
.request() // .request()
.then((body) => { // .then((body) => {
title.value = body // title.value = body
console.log('[API]', body, $app.name, $app.version) // console.log('[API]', body, $app.name, $app.version)
Message.toast(body) // Message.toast(body)
}) // })
.catch((err) => { // .catch((err) => {
console.error('[API]', err) // console.error('[API]', err)
}) // })
// test WebSocket(STOMP) // // test WebSocket(STOMP)
Stomp.connect(() => { // Stomp.connect(() => {
Stomp.send('/app/ping', 'ping') // Stomp.send('/app/ping', 'ping')
}) // })
// test uni-stat // // test uni-stat
uni.report('onLoad', `[Test] onLoad: ${dayjs().format('YYYY-MM-DD HH:mm:ss')}`) // uni.report('onLoad', `[Test] onLoad: ${dayjs().format('YYYY-MM-DD HH:mm:ss')}`)
}) })
function surprise() { function surprise() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论