forum
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect } from 'react'
|
||||
import Taro, { useRouter } from '@tarojs/taro'
|
||||
import { View, Text, Input, Textarea, Button, Picker } from '@tarojs/components'
|
||||
import { View, Text, Input, Textarea, Button, Picker, ScrollView } from '@tarojs/components'
|
||||
import { createTopic, updateTopic, getTopicDetail, uploadMedia } from '../../../api'
|
||||
import './create.scss'
|
||||
|
||||
@@ -123,7 +123,7 @@ const CreateTopic = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<View className='create-topic-page'>
|
||||
<ScrollView scrollY className='create-topic-page'>
|
||||
<View className='form-item'>
|
||||
<Text className='label'>板块</Text>
|
||||
<Picker range={categories} rangeKey='label' value={categoryIndex} onChange={handleCategoryChange}>
|
||||
@@ -165,7 +165,7 @@ const CreateTopic = () => {
|
||||
>
|
||||
{loading ? (id ? '更新中...' : '发布中...') : (id ? '更新话题' : '发布话题')}
|
||||
</Button>
|
||||
</View>
|
||||
</ScrollView>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user