• [Vue warn]: Property "visible" must be accessed with "$data.visible" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internal.


      vue + element = vue-element-admin

      页面长时间后自动退出页面,控制台报了一串错误。

        [Vue warn]: vue.runtime.esm.js:619 [Vue warn]: data functions should return an object:

        [Vue warn]: Property "visible" must be accessed with "$data.visible" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internal.

        [Vue warn]: vue.runtime.esm.js:619 [Vue warn]: Property "type" must be accessed with "$data.type"

        [Vue warn]: Property "center" must be accessed with "$data.center"

        [Vue warn]: vue.runtime.esm.js:619 [Vue warn]: Property "showClose" must be accessed with "$data.showClose"

        [Vue warn]: Property "iconClass" must be accessed with "$data.iconClass"

        [Vue warn]: Property "dangerouslyUseHTMLString" must be accessed with "$data.dangerouslyUseHTMLString"

        [Vue warn]: Property "message" must be accessed with "$data.message"

        [Vue warn]: Property "showClose" must be accessed with "$data.showClose"

        ...

      解决办法:


    修改permission文件中的 Message.error(error || 'Has Error') 为 Message.error(‘Has Error')

     

    浅喜似苍狗,深爱如长风
  • 相关阅读:
    软件性能测试知识汇总
    软件功能测试知识汇总
    机器学习——KNN算法(k近邻算法)
    Shell脚本语法
    机器学习环境搭建及基础
    shell基础及变量
    查准率和召回率理解
    python中的矩阵、多维数组
    链表:反转链表
    栈和队列:生成窗口最大值数组
  • 原文地址:https://www.cnblogs.com/Zhang-jin/p/14469474.html
Copyright © 2020-2023  润新知