|
|
@ -51,10 +51,7 @@ class Boards extends Component{
|
|
|
|
const sort_type = this.state.sort_type
|
|
|
|
const sort_type = this.state.sort_type
|
|
|
|
// page_size
|
|
|
|
// page_size
|
|
|
|
const url = `/boards/${bid}/messages.json?page_size=15&search=${_serachText || ''}&page=${_page}&sort=0&sort_type=${sort_type}`
|
|
|
|
const url = `/boards/${bid}/messages.json?page_size=15&search=${_serachText || ''}&page=${_page}&sort=0&sort_type=${sort_type}`
|
|
|
|
axios.get(url, {
|
|
|
|
axios.get(encodeURI(url)).then((response) => {
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
if (response.data.status == 0 && response.data.data) {
|
|
|
|
if (response.data.status == 0 && response.data.data) {
|
|
|
|
let _newBoards = response.data.data.messages
|
|
|
|
let _newBoards = response.data.data.messages
|
|
|
|
// if (_page > 1) {
|
|
|
|
// if (_page > 1) {
|
|
|
|