[Vue警告]:使用uiv模态时,$ attrs是只读错误

时间:2018-10-23 11:42:54

标签: javascript php vue.js vuejs2

我在vue应用程序中使用uiv模态,并将其导入自定义组件后,使用webpack创建build.js。 但是当我在我的php项目中包含该build.js时,它向我显示了控制台中的以下错误。

  

[Vue警告]:$ attrs为只读

package.json中的我的devDependencies对象如下:

"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.0.5",
"css-loader": "^0.28.7",
"file-loader": "^1.1.4",
"html-webpack-plugin": "^2.30.1",
"node-sass": "^4.5.3",
"sass-loader": "^6.0.6",
"vue-loader": "^13.0.5",
"vue-template-compiler": "^2.4.4",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.9.1"

}

0 个答案:

没有答案