GithubHelp home page GithubHelp logo

mpvue-cnode's Issues

怎样引用原生的组件

##RT。我做了如下尝试:
1.在main.js中加了

usingComponents: {
            'info': 'components/userInfo/index'
}

引用的vue中使用组件并没有被渲染出来
2.或者在router/routes.js中

{
        path: '/pages/breakfast/index',
        name: 'BreakfastList',
        config: {
            navigationBarTitleText: '早餐',
            // 这儿添加要用的小程序组件
            usingComponents: {
                'info': '../../components/userInfo/index'
            }
        }
    },

这样会报
image
这样的错误。
项目目录如下:
image
image

关于用户身份问题

@@从主页的README上,看到作者 @jaxQin 写到:

待办事宜:
登录
点赞
收藏
发布
评论

然而, 查看了CNode社区的API页面,并未提供登录接口
同时,以上的几个事件,都是需要有用户的accessToken。而API文档底部提示:

知识点
如何获取 accessToken? 用户登录后,在设置页面可以看到自己的 accessToken。 建议各移动端应用使用手机扫码的形式登录,验证使用 /accesstoken 接口,登录后长期保存 accessToken。

所以,我推荐,用二维码扫描,从登录后的设置页获取accessToken

自定义事件的写法

/src/components/slider-nav.vue 中 46行 this.$emit('update:currentTab', current)
我想请教一下,这个'update:currentTab'事件是在哪里定义的?'update:'是语法还是一种固定的写法吗?
查询了很多资料都没看到,希望能解答一下,谢谢了!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.