您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

18 行
385 B

  1. // app.ts
  2. App<IAppOption>({
  3. globalData: {},
  4. onLaunch() {
  5. // 展示本地存储能力
  6. const logs = wx.getStorageSync('logs') || []
  7. logs.unshift(Date.now())
  8. wx.setStorageSync('logs', logs)
  9. // 登录
  10. wx.login({
  11. success: res => {
  12. console.log(res.code)
  13. // 发送 res.code 到后台换取 openId, sessionKey, unionId
  14. },
  15. })
  16. },
  17. })