Commit 359921d6 authored by hewenhao's avatar hewenhao

feat: rename

parent 69f9ae7a
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
export default { export default {
pages: [ pages: [
'pages/index/index', 'pages/main/main',
], ],
subPackages: {{packages}}, subPackages: {{packages}},
resizable: true, resizable: true,
preloadRule: {{preloadRule}}, preloadRule: {{preloadRule}},
window: { window: {
navigationBarBackgroundColor: '#fff', navigationBarBackgroundColor: '#fff',
navigationBarTitleText: '学习力成长', navigationBarTitleText: '进击吧数学',
navigationBarTextStyle: 'black', navigationBarTextStyle: 'black',
backgroundTextStyle: 'dark', backgroundTextStyle: 'dark',
backgroundColor: '#F3F8FA', backgroundColor: '#F3F8FA',
......
import { View, Button, Text } from '@tarojs/components' import { View, Button, Text } from '@tarojs/components'
import { useStoreActions, useStoreState } from '@/store/hooks' import { useStoreActions, useStoreState } from '@/store/hooks'
import styles from './index.module.scss' import styles from './main.module.scss'
const IndexPage = () => { const MainPage = () => {
const num = useStoreState(state => state.counterModel.count) const num = useStoreState(state => state.counterModel.count)
const add = useStoreActions(actions => actions.counterModel.add) const add = useStoreActions(actions => actions.counterModel.add)
const dec = useStoreActions(actions => actions.counterModel.dec) const dec = useStoreActions(actions => actions.counterModel.dec)
...@@ -19,4 +19,4 @@ const IndexPage = () => { ...@@ -19,4 +19,4 @@ const IndexPage = () => {
) )
} }
export default IndexPage export default MainPage
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 to comment