diff --git a/package.json b/package.json index 610281a..7f86f41 100644 --- a/package.json +++ b/package.json @@ -15,12 +15,6 @@ "path": "node_modules/cz-git" } }, - "lint-staged": { - "src/**/*.{js,vue}": [ - "eslint --fix", - "git add" - ] - }, "keywords": [ "vue", "admin", @@ -37,8 +31,7 @@ "dependencies": { "@babel/parser": "7.7.4", "@riophae/vue-treeselect": "0.4.0", - "axios": "^1.10.0", - "bpmn-js-token-simulation": "0.10.0", + "axios": "0.24.0", "clipboard": "2.0.8", "core-js": "3.25.3", "echarts": "5.4.0", @@ -60,14 +53,15 @@ "vue-router": "3.4.9", "vuedraggable": "2.24.3", "vuex": "3.6.0", - "xml-js": "1.6.11" + "xml-js": "1.6.11", + "bpmn-js-token-simulation": "0.10.0" }, "devDependencies": { "@commitlint/cli": "^19.7.1", "@commitlint/config-conventional": "^19.7.1", - "@vue/cli-plugin-babel": "^5.0.8", - "@vue/cli-plugin-eslint": "^5.0.8", - "@vue/cli-service": "^5.0.8", + "@vue/cli-plugin-babel": "4.4.6", + "@vue/cli-plugin-eslint": "4.4.6", + "@vue/cli-service": "4.4.6", "babel-eslint": "10.1.0", "babel-plugin-dynamic-import-node": "2.3.3", "bpmn-js": "7.5.0", diff --git a/vue.config.js b/vue.config.js index b1016a7..b18ad67 100644 --- a/vue.config.js +++ b/vue.config.js @@ -42,7 +42,12 @@ module.exports = { } } }, - disableHostCheck: true + //disableHostCheck: true + historyApiFallback: true, + allowedHosts: [ + 'localhost', + '127.0.0.1' + ] }, css: { loaderOptions: { @@ -53,11 +58,14 @@ module.exports = { }, configureWebpack: { name: name, - resolve: { - alias: { - '@': resolve('src') - } - }, + // resolve: { + // fallback: { + // path: require.resolve('path-browserify') + // }, + // alias: { + // '@': resolve('src') + // } + // }, plugins: [ // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件 new CompressionPlugin({