Commit b1d1b9f4 by lirandong

fix

parent 7ef24d78
......@@ -17,11 +17,11 @@ import './app.scss'
// }
/** 初始化 tokne */
!(async () => {
await token.init()
console.log('object')
Taro.render(<App />, document.getElementById('app'))
})()
// !(async () => {
// await token.init()
// console.log('object')
// Taro.render(<App />, document.getElementById('app'))
// })()
const store = configStore()
......@@ -35,9 +35,9 @@ class App extends Component {
*/
config: Config = {
pages: [
'pages/home/tempaltes/index',
'pages/login/index',
'pages/home/device/index',
'pages/home/tempaltes/index',
// 'pages/login/index',
'pages/home/device/device_detail/index',
'pages/system/wifi_list/index',
'pages/home/device/device_bind/index',
......@@ -80,11 +80,13 @@ class App extends Component {
]
}
}
constructor(props) {
super(props)
// console.error('object')
}
componentWillMount() {
console.log('token.isLogon()', token.isLogon())
// setTimeout(() => {
// }, 2000)
// console.log('token.isLogon()', token.isLogon())
}
// 在 App 类中的 render() 函数没有实际作用
......@@ -98,4 +100,4 @@ class App extends Component {
}
}
// Taro.render(<App />, document.getElementById('app'))
Taro.render(<App />, document.getElementById('app'))
......@@ -2,7 +2,7 @@ import { MyStorage } from './utils'
class Token {
private initDone = false
// private token = '676191a8b17442cfb06d31fdc936db6e-APP'
private token = 'f3c5a23c5c5544d08a614f22ac8d4344-APP'
private token = '78b98f74f89f43aea0d393e0fae63b5d-APP'
// constructor() {
// this.getStorageToken()
// }
......
......@@ -3,7 +3,7 @@ import { ComponentClass } from 'react'
import { CheckBox } from 'react-native'
import { connect } from '@tarojs/redux'
import token from '../../common/token'
import { HONE } from '../../constants/router'
// import { HONE } from '../../constants/router'
import { checkPhone, showMyToast } from '../../common/utils'
import Taro, { Component, Config } from '@tarojs/taro'
import { View, Text, Input, Button, Checkbox, Label } from '@tarojs/components'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment