|
@@ -24,6 +24,7 @@ import trackTimeService from '@/store/trackTimeMachine';
|
|
|
import { setWXFollow } from '@/store/permission';
|
|
import { setWXFollow } from '@/store/permission';
|
|
|
import Tooltip from '@/components/Tooltip'
|
|
import Tooltip from '@/components/Tooltip'
|
|
|
import RequestType, { thirdPartRequest } from '@/services/thirdPartRequest'
|
|
import RequestType, { thirdPartRequest } from '@/services/thirdPartRequest'
|
|
|
|
|
+import { setConfigs } from '@/store/common'
|
|
|
// import TabBar from '../../components/Tabbar';
|
|
// import TabBar from '../../components/Tabbar';
|
|
|
|
|
|
|
|
export default function IndexPage() {
|
|
export default function IndexPage() {
|
|
@@ -41,7 +42,6 @@ export default function IndexPage() {
|
|
|
global.dispatch = dispatch;
|
|
global.dispatch = dispatch;
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
dispatch(staticResources() as any);
|
|
dispatch(staticResources() as any);
|
|
|
- dispatch(gobalConfigs() as any);
|
|
|
|
|
// dispatch(gobalConfigs() as any);
|
|
// dispatch(gobalConfigs() as any);
|
|
|
trackTimeService.onTransition(state => {
|
|
trackTimeService.onTransition(state => {
|
|
|
if ((state.value as any).FAST_SLEEP == 'COMPLETED' ||
|
|
if ((state.value as any).FAST_SLEEP == 'COMPLETED' ||
|
|
@@ -161,6 +161,7 @@ export default function IndexPage() {
|
|
|
|
|
|
|
|
function getCheckData() {
|
|
function getCheckData() {
|
|
|
getClocks().then(res => {
|
|
getClocks().then(res => {
|
|
|
|
|
+ dispatch(setConfigs((res as any).time_input_schema));
|
|
|
dispatch(setScenario((res as any).scenario));
|
|
dispatch(setScenario((res as any).scenario));
|
|
|
machine.context.checkData = res as any;
|
|
machine.context.checkData = res as any;
|
|
|
|
|
|