在做展示分类列表时 ,点击分类按钮 报错 ?

在做展示分类列表时 ,点击分类按钮 报错

VM60779:1 Do not have toggle handler in current page: pages/topics/index. Please make sure that toggle handler has been defined in pages/topics/index, or pages/topics/index has been added into app.json

代码

computed = {
      currentCategoryId () {
        return this.currentCategory.id || 0
      }
    }
    methods = {
      toggle () {
        console.log('toggle is running ....')
        this.categoryOpen = !this.categoryOpen
      },
      async changeCatgory (id = 0) {
        // 找到选中的分类
        this.currentCategory = id ? this.categories.find(category => category.id === id) : {}
        // 点击以后关闭下拉列表
        this.categoryOpen = false
        this.$apply()
        await this.getTopics(1, true)
      }
    }

我目前没有发现错误原因。。

@李山河
你看我吊吗啊
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
liyu001989
最佳答案

Please read error message

6年前 评论
讨论数量: 2
liyu001989

Please read error message

6年前 评论
你看我吊吗啊

@liyu001989 谢!昨五点多 找到原因了 ,是一个 结束标签 缺少了。。太隐蔽了

6年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!