-
+
+ 创建话题
+
+
@@ -103,6 +106,8 @@
@current-change="handleCurrentChange"
@size-change="handleSizeChange"
/>
+
+
@@ -110,9 +115,11 @@
import { getList } from '@/api/rating/topic'
import { formatTime } from '@/utils'
import { getThumbUrl } from '@/utils/blessing'
+ import TopicEdit from './components/TopicEdit'
export default {
name: 'RatingTopicIndex',
+ components: { TopicEdit },
data() {
return {
list: [],
@@ -133,6 +140,9 @@
methods: {
formatTime,
getThumbUrl,
+ handleAdd() {
+ this.$refs['edit'].showEdit()
+ },
handleSizeChange(val) {
this.queryForm.pageSize = val
this.fetchData()