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 @@
"ignore": [], "ignore": [],
"include": [] "include": []
}, },
"appid": "wx2b0bb13edf717c1d" "appid": "wxaae50c206446a964"
} }

8
src/app.ts

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

Loading…
Cancel
Save