feat(miniapp): scaffold WeChat mini program MVP

This commit is contained in:
john
2026-07-11 08:46:08 +08:00
parent 32fb2cdeaf
commit 9e5a59b7d9
29 changed files with 948 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
const { getStoredSession, setApiBaseUrl } = require('./utils/api');
const { API_BASE_URL } = require('./utils/config');
App({
globalData: {
user: null,
},
onLaunch() {
setApiBaseUrl(API_BASE_URL);
const session = getStoredSession();
if (session?.user) {
this.globalData.user = session.user;
}
},
});