猿问

meteor语法错误,应该怎么改?

<template>    <el-row class="item" v-show="!UserCursor('specialist')"></el-row></template>   
     meteor: {            /**
             * @return {boolean}
             */
            UserCursor(auth) {                return this.personAuth === auth;

            },
        }

这样写提示错误TypeError: _vm.UserCursor is not a function"?


慕哥6287543
浏览 439回答 2
2回答

梵蒂冈之花

你看看vue-with-meteor的文档介绍

慕桂英3389331

暂时改成这样了<template> &nbsp;&nbsp;&nbsp;&nbsp;<el-row&nbsp;class="item"&nbsp;v-show="!('specialist'===this.personAuth)"></el-row></template>
随时随地看视频慕课网APP

相关分类

Html5
我要回答