[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')

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM