diff --git a/ruoyi-ui/.babelrc b/ruoyi-ui/.babelrc new file mode 100644 index 000000000..1e5e4d639 --- /dev/null +++ b/ruoyi-ui/.babelrc @@ -0,0 +1,4 @@ +{ + "presets":["@babel/preset-env"], + "plugins":["transform-vue-jsx"] +} \ No newline at end of file diff --git a/ruoyi-ui/.env.production b/ruoyi-ui/.env.production index c446eb32a..8764b6660 100644 --- a/ruoyi-ui/.env.production +++ b/ruoyi-ui/.env.production @@ -6,10 +6,10 @@ ENV = 'production' # 若依管理系统/生产环境 # VUE_APP_BASE_API = 'prod-api' -VUE_APP_BASE_API = 'http://192.168.1.183:8080' +VUE_APP_BASE_API = 'http://172.17.172.240:8080' # 图片上传接口 -VUE_APP_IMAGE_API = 'http://192.168.1.183:8080/system/visualImage/upload' +VUE_APP_IMAGE_API = 'http://172.17.172.240:8080/system/visualImage/upload' # 图片上传文件夹 -VUE_APP_IMAGE_PATH ='http://192.168.1.183:8080/profile/images/' +VUE_APP_IMAGE_PATH ='http://172.17.172.240:8080/profile/images/' diff --git a/ruoyi-ui/.eslintignore b/ruoyi-ui/.eslintignore index 89be6f659..09bfa9361 100644 --- a/ruoyi-ui/.eslintignore +++ b/ruoyi-ui/.eslintignore @@ -7,4 +7,6 @@ public # 忽略当前目录下为js的文件的语法检查 *.js # 忽略当前目录下为vue的文件的语法检查 -*.vue \ No newline at end of file +*.vue + +*.babelrc \ No newline at end of file diff --git a/ruoyi-ui/babel.config.js b/ruoyi-ui/babel.config.js index b99f00148..485a9a2f3 100644 --- a/ruoyi-ui/babel.config.js +++ b/ruoyi-ui/babel.config.js @@ -1,7 +1,8 @@ module.exports = { presets: [ // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app - '@vue/cli-plugin-babel/preset' + '@vue/cli-plugin-babel/preset', + // '@vue/babel-preset-jsx' ], 'env': { 'development': { @@ -9,5 +10,5 @@ module.exports = { // This plugin can significantly increase the speed of hot updates, when you have a large number of pages. 'plugins': ['dynamic-import-node'] } - } + }, } diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index fd3d96488..99ef64e7b 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -36,7 +36,10 @@ "url": "https://gitee.com/y_project/RuoYi-Vue.git" }, "dependencies": { + "@babel/preset-env": "^7.16.5", "@riophae/vue-treeselect": "0.4.0", + "@vue/babel-helper-vue-jsx-merge-props": "^1.2.1", + "@vue/babel-preset-jsx": "^1.2.4", "axios": "0.21.0", "clipboard": "2.0.6", "codemirror": "^5.63.3", @@ -49,6 +52,7 @@ "js-beautify": "1.13.0", "js-cookie": "2.2.1", "jsencrypt": "3.0.0-rc.1", + "lodash": "^4.17.21", "mockjs": "^1.1.0", "nprogress": "0.2.0", "quill": "1.3.7", @@ -68,6 +72,11 @@ "@vue/cli-plugin-eslint": "4.4.6", "@vue/cli-service": "4.4.6", "babel-eslint": "10.1.0", + "babel-helper-vue-jsx-merge-props": "^2.0.3", + "babel-plugin-jsx-v-model": "^2.0.3", + "babel-plugin-syntax-jsx": "^6.18.0", + "babel-plugin-transform-vue-jsx": "^3.7.0", + "babel-preset-env": "^1.7.0", "chalk": "4.1.0", "connect": "3.6.6", "echarts": "^4.9.0", diff --git a/ruoyi-ui/src/config.js b/ruoyi-ui/src/config.js index ebe694016..34e00dd42 100644 --- a/ruoyi-ui/src/config.js +++ b/ruoyi-ui/src/config.js @@ -13,4 +13,4 @@ export default { } // export const url = 'https://data.bladex.vip/blade-visual' // export const url = 'http://localhost:8080/avue/api' -export const url = 'http://192.168.1.183:8080/avue/api' +export const url = 'http://172.17.172.240:8080/avue/api' diff --git a/ruoyi-ui/src/layout/components/InnerLink/index.vue b/ruoyi-ui/src/layout/components/InnerLink/index.vue index a45d1a4a4..c6372ff20 100644 --- a/ruoyi-ui/src/layout/components/InnerLink/index.vue +++ b/ruoyi-ui/src/layout/components/InnerLink/index.vue @@ -1,9 +1,9 @@ - - + diff --git a/ruoyi-ui/src/page/group/myDialog.vue b/ruoyi-ui/src/page/group/myDialog.vue index 9319f6e71..f072dff88 100644 --- a/ruoyi-ui/src/page/group/myDialog.vue +++ b/ruoyi-ui/src/page/group/myDialog.vue @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/ruoyi-ui/src/views/screen/page/group/contentmenu.vue b/ruoyi-ui/src/views/screen/page/group/contentmenu.vue index 60f833831..cab268c2f 100644 --- a/ruoyi-ui/src/views/screen/page/group/contentmenu.vue +++ b/ruoyi-ui/src/views/screen/page/group/contentmenu.vue @@ -33,6 +33,7 @@