Explorar el Código

联锁的弹出框期望固定,点击框外时不消失

dongjh hace 2 meses
padre
commit
ea678cc17b
Se han modificado 2 ficheros con 7 adiciones y 7 borrados
  1. 2 1
      src/main.js
  2. 5 6
      vue.config.js

+ 2 - 1
src/main.js

@@ -53,6 +53,7 @@ import '@/assets/less/JAreaLinkage.less'
 import VueAreaLinkage from 'vue-area-linkage'
 import '@/components/jeecg/JVxeTable/install'
 import '@/components/JVxeCells/install'
+import { Modal } from 'ant-design-vue' //引入modal对话框组件
 //表单验证
 import { rules } from '@/utils/rules'
 Vue.prototype.rules = rules
@@ -72,7 +73,7 @@ Vue.use(JeecgComponents);
 Vue.use(UComponents);
 // 修改框架:全局挂载方法递归树
 Vue.prototype.handleTree = handleTree
-
+Modal.props.maskClosable.default = false  //把maskCloseable关闭,即把点击空白关闭遮罩层的功能去掉
 Vue.use(VueAreaLinkage);
 
 SSO.init(() => {

+ 5 - 6
vue.config.js

@@ -24,8 +24,8 @@ module.exports = {
   //     filename: 'index.html',
   //   }
   // },
-  //打包时修改该配置 需放开
-  //publicPath:'/interlock',
+  //打包时修改该配置 如果发布时,是以应用程序方式发布(类似8082/screen),放开
+  // publicPath:'/interlock',
   configureWebpack: config => {
     //生产环境取消 console.log
     if (process.env.NODE_ENV === 'production') {
@@ -103,8 +103,7 @@ module.exports = {
      /* '/api': {
         target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
         ws: false,
-        changeOrigin: true,
-        pathRewrite: {
+        changeOrigin: true,        pathRewrite: {
           '/jeecg-boot': ''  //默认所有请求都加了jeecg-boot前缀,需要去掉
         }
       },*/
@@ -117,9 +116,9 @@ module.exports = {
       // },
       // 部署修改
       [process.env.VUE_APP_API_BASE_URL]: {
+        // target: 'http://192.168.31.110:31520',
         target: 'http://127.0.0.1:8520',
-        // target: 'http://127.0.0.1:8520',
-        changeOrigin: true,
+        angeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_API_BASE_URL]: ''
         }