feat: 个人appld
This commit is contained in:
7
config.js
Normal file
7
config.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
export const type = "people"; //office 个人公司
|
||||||
|
// wx515bd42ee0db5c5d cityNew
|
||||||
|
// wx2b2ec2ba5ee694bc 公司
|
||||||
|
export const appId = type === "people" ? "wx515bd42ee0db5c5d" : "wx2b2ec2ba5ee694bc";
|
||||||
|
export const envConfig=type === "people" ? "citynew-0givkbre03955d8c" : "cloud1-5g5xrgza12a0dd6d";
|
||||||
|
|
||||||
|
|
||||||
2
dist/app.js
vendored
2
dist/app.js
vendored
File diff suppressed because one or more lines are too long
6
dist/app.js.LICENSE.txt
vendored
6
dist/app.js.LICENSE.txt
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
/*! ../config */
|
||||||
|
|
||||||
/*! ../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./app.ts */
|
/*! ../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./app.ts */
|
||||||
|
|
||||||
/*! ./assertThisInitialized.js */
|
/*! ./assertThisInitialized.js */
|
||||||
@@ -32,6 +34,10 @@
|
|||||||
|
|
||||||
/*! react-dom */
|
/*! react-dom */
|
||||||
|
|
||||||
|
/*!*******************!*\
|
||||||
|
!*** ./config.js ***!
|
||||||
|
\*******************/
|
||||||
|
|
||||||
/*!********************!*\
|
/*!********************!*\
|
||||||
!*** ./src/app.ts ***!
|
!*** ./src/app.ts ***!
|
||||||
\********************/
|
\********************/
|
||||||
|
|||||||
2
dist/project.config.json
vendored
2
dist/project.config.json
vendored
@@ -2,7 +2,7 @@
|
|||||||
"miniprogramRoot": "./",
|
"miniprogramRoot": "./",
|
||||||
"projectname": "myApp",
|
"projectname": "myApp",
|
||||||
"description": "city",
|
"description": "city",
|
||||||
"appid": "wx2b2ec2ba5ee694bc",
|
"appid": "wx515bd42ee0db5c5d",
|
||||||
"cloudfunctionRoot": "cloudfunctions/",
|
"cloudfunctionRoot": "cloudfunctions/",
|
||||||
"setting": {
|
"setting": {
|
||||||
"urlCheck": true,
|
"urlCheck": true,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"miniprogramRoot": "dist/",
|
"miniprogramRoot": "dist/",
|
||||||
"projectname": "myApp",
|
"projectname": "myApp",
|
||||||
"description": "city",
|
"description": "city",
|
||||||
"appid": "wx2b2ec2ba5ee694bc",
|
"appid": "wx515bd42ee0db5c5d",
|
||||||
"cloudfunctionRoot": "cloudfunctions/",
|
"cloudfunctionRoot": "cloudfunctions/",
|
||||||
"setting": {
|
"setting": {
|
||||||
"urlCheck": true,
|
"urlCheck": true,
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
import { Component } from "react";
|
import { Component } from "react";
|
||||||
import "./app.scss";
|
import "./app.scss";
|
||||||
|
import {envConfig} from '../config'
|
||||||
class App extends Component<any> {
|
class App extends Component<any> {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
Taro.cloud.init({
|
Taro.cloud.init({
|
||||||
env: 'cloud1-5g5xrgza12a0dd6d',
|
// env: 'cloud1-5g5xrgza12a0dd6d',//公司
|
||||||
|
env:envConfig, //个人
|
||||||
traceUser:true
|
traceUser:true
|
||||||
})
|
})
|
||||||
|
|
||||||
const a = new Taro.cloud.Cloud({
|
const a = new Taro.cloud.Cloud({
|
||||||
resourceEnv: 'cloud1-5g5xrgza12a0dd6d',
|
resourceEnv:envConfig, //公司
|
||||||
})
|
})
|
||||||
a.init()
|
a.init()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user