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"?

阅读 2.2k
2 个回答

暂时改成这样了

<template>
    <el-row class="item" v-show="!('specialist'===this.personAuth)"></el-row>
</template> 
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进