zoukankan      html  css  js  c++  java
  • [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')

     

    浅喜似苍狗,深爱如长风
  • 相关阅读:
    多任务5-协程(IO密集型适用)--gevent完成多任务及monkey补丁
    多任务4---greenlet完成多任务
    多任务3(协程)--yield完成多任务交替执行
    生成器调试---send方式
    生成器调试
    生成器创建的两种方式
    列表生成方式-列表推导式
    迭代器应用场景1---斐波那契
    迭代器
    多任务案例--文件夹copy.py
  • 原文地址:https://www.cnblogs.com/Zhang-jin/p/14469474.html
Copyright © 2011-2022 走看看