Browse Source

打印code

main
kola 6 months ago
parent
commit
7422d0f440
  1. 2
      project.config.json
  2. 8
      src/app.ts

2
project.config.json

@ -41,5 +41,5 @@ @@ -41,5 +41,5 @@
"ignore": [],
"include": []
},
"appid": "wx2b0bb13edf717c1d"
"appid": "wxaae50c206446a964"
}

8
src/app.ts

@ -1,7 +1,13 @@ @@ -1,7 +1,13 @@
// app.ts
App<IAppOption>({
globalData: {},
onLaunch() {},
onLaunch() {
wx.login({
success: (res) => {
console.log("code", res);
},
});
},
waitLogin() {
return new Promise((resolve, reject) => {
resolve(true);

Loading…
Cancel
Save