diff --git a/jero-web/package.json b/jero-web/package.json index a8c88d53..148c0ee3 100644 --- a/jero-web/package.json +++ b/jero-web/package.json @@ -57,7 +57,7 @@ "@vue/cli-plugin-eslint": "~4.2.3", "@vue/cli-service": "^3.3.0", "@vue/eslint-config-standard": "^5.1.0", - "babel-eslint": "^10.0.3", + "babel-eslint": "7.2.3", "compression-webpack-plugin": "^3.1.0", "eslint": "^6.7.2", "eslint-plugin-import": "^2.20.1", diff --git a/jero-web/src/components/tools/DynamicNotice.vue b/jero-web/src/components/tools/DynamicNotice.vue index ddd89123..9d63c843 100644 --- a/jero-web/src/components/tools/DynamicNotice.vue +++ b/jero-web/src/components/tools/DynamicNotice.vue @@ -15,17 +15,22 @@ export default { } }, computed: { - comp: resolve => require([`@/views/${this.path}.vue`], resolve) + comp: function () { + if(!this.path){ + return null; + } + return () => import(`@/views/${this.path}.vue`) + } }, - props: ['path', 'formData'], + props: ['path','formData'], methods: { detail () { setTimeout(() => { - if (this.path) { - this.$refs.compModel.view(this.formData) + if(this.path){ + this.$refs.compModel.view(this.formData); } }, 200) - } + }, } }