init
This commit is contained in:
3
src/pages/index/index.config.js
Normal file
3
src/pages/index/index.config.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: '首页'
|
||||
})
|
||||
16
src/pages/index/index.jsx
Normal file
16
src/pages/index/index.jsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { View, Text } from '@tarojs/components'
|
||||
import { useLoad } from '@tarojs/taro'
|
||||
import './index.scss'
|
||||
|
||||
export default function Index() {
|
||||
|
||||
useLoad(() => {
|
||||
console.log('Page loaded.')
|
||||
})
|
||||
|
||||
return (
|
||||
<View className='index'>
|
||||
<Text>Hello world!</Text>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
0
src/pages/index/index.scss
Normal file
0
src/pages/index/index.scss
Normal file
Reference in New Issue
Block a user