Skip to content

Commit d052eb9

Browse files
committed
chore: add Logo assets/logo.png import
1 parent 2058293 commit d052eb9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
4.08 KB
Loading

apps/taro-webpack-tailwindcss-v4/src/pages/index/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { Text, View } from '@tarojs/components'
1+
import { Image, Text, View } from '@tarojs/components'
22
import { useLoad } from '@tarojs/taro'
3+
import Logo from '../../assets/logo.png'
34
import './index.css'
45

56
export default function Index() {
@@ -9,6 +10,7 @@ export default function Index() {
910

1011
return (
1112
<>
13+
<Image src={Logo}></Image>
1214
<View className="bg-[#2e2bcc] text-[100rpx] text-white">
1315
<Text>Hello world!</Text>
1416
</View>

0 commit comments

Comments
 (0)