Skip to content

Commit b926b08

Browse files
chore: add comments to loginByPhone
1 parent 2004167 commit b926b08

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

examples/miniapp-taro/src/pages/index/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ export default class Index extends Component<PropsWithChildren> {
6464
console.log('authing.loginByCode res: ', res)
6565
}
6666

67+
/**
68+
* 需要在真机上测试,微信开发者工具不会返回 code
69+
* @param {*} e
70+
*/
6771
async loginByPhone (e) {
6872
const { code } = e.detail
6973
const res = await authing.loginByPhone({

examples/miniapp-uniapp/src/pages/index/index.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
},
5252
5353
methods: {
54+
/**
55+
* 需要在真机上测试,微信开发者工具不会返回 code
56+
* @param {*} e
57+
*/
5458
async loginByPhone (e) {
5559
const { code } = e.detail
5660
const res = await authing.loginByPhone({

examples/miniapp-wx/miniapp/pages/index/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ console.log('authing: ', authing)
1818
Page({
1919
data: {},
2020

21+
/**
22+
* 需要在真机上测试,微信开发者工具不会返回 code
23+
* @param {*} e
24+
*/
2125
async loginByPhone (e) {
2226
const { code } = e.detail
2327
const res = await authing.loginByPhone({

0 commit comments

Comments
 (0)