diff --git a/package.json b/package.json index 0db6c10..7c846c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-admin-front", - "version": "1.1.0-beta.2", + "version": "1.1.0", "description": "Vue.js based admin panel frontend", "main": "index.js", "author": "Timofey Tiunov ", @@ -19,7 +19,7 @@ "axios": "^0.18.0", "bootstrap": "^3.3.7", "buble": "^0.19.3", - "buble-loader": "^0.5.0", + "buble-loader": "^0.5.1", "css-loader": "^0.28.11", "express": "^4.16.3", "file-loader": "^1.1.11", @@ -46,12 +46,12 @@ "vuedraggable": "^2.16.0", "vuex": "^3.0.1", "vuex-router-sync": "^5.0.0", - "webpack": "^4.10.2", + "webpack": "^4.12.0", "webpack-dev-middleware": "^3.1.3", "webpack-hot-middleware": "^2.22.2" }, "devDependencies": { - "babel-eslint": "^8.2.2", - "webpack-command": "^0.2.0" + "babel-eslint": "^8.2.3", + "webpack-command": "^0.2.1" } } diff --git a/src/utils/index.js b/src/utils/index.js index 0aab1a6..3008012 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -183,7 +183,7 @@ export function httpErrorModalData(err) { export function formatFieldErrors(errors) { const obj = {}; for (let path of Object.keys(errors)) { - const names = path.split('.'); + const names = path.replace(/^files__/, '').split('.'); let currentDepthObj = obj; for (let i = 0; i < names.length - 1; ++i) { currentDepthObj[names[i]] = currentDepthObj[names[i]] || {};