feat: 个人appld

This commit is contained in:
huxiaoshuang
2022-11-23 16:17:58 +08:00
parent 80914506ce
commit e045ef43df
6 changed files with 20 additions and 5 deletions

View File

@@ -1,15 +1,17 @@
import Taro from "@tarojs/taro";
import { Component } from "react";
import "./app.scss";
import {envConfig} from '../config'
class App extends Component<any> {
componentDidMount() {
Taro.cloud.init({
env: 'cloud1-5g5xrgza12a0dd6d',
// env: 'cloud1-5g5xrgza12a0dd6d',//公司
env:envConfig, //个人
traceUser:true
})
const a = new Taro.cloud.Cloud({
resourceEnv: 'cloud1-5g5xrgza12a0dd6d',
resourceEnv:envConfig, //公司
})
a.init()
}