| 123456789101112131415161718 |
- import updateManager from './common/updateManager';
- import { init } from '@cloudbase/wx-cloud-client-sdk';
- wx.cloud.init({
- env: 'cloudbase-1gtdgr1nba7424b9', // 指定云开发环境 ID
- });
- const client = init(wx.cloud);
- const models = client.models;
- globalThis.dataModel = models;
- // 接下来就可以调用 models 上的数据模型增删改查等方法了
- App({
- onLaunch: function () {},
- onShow: function () {
- updateManager();
- },
- });
|