gaosp
2024-01-18 965b19ae669bbc00596aeb6219d63a15562d2b20
update
已修改3个文件
24 ■■■■■ 文件已修改
config/index.js 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/home/index.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/styles/index.scss 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/index.js
@@ -1,7 +1,7 @@
/*
 * @Date: 2023-12-20 20:21:29
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-05 23:44:25
 * @LastEditTime: 2024-01-17 23:53:54
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/config/index.js
 */
'use strict'
@@ -18,14 +18,18 @@
    assetsPublicPath: '/',
    proxyTable: {
      '/mdc': {
    //  target: 'http://172.20.10.8:8087/',
      //  target: 'http://192.168.230.143:8087/',
      target: 'http://116.63.148.72:8088/',
      // target: 'http://111.230.17.122:8087/',
      target: 'http://116.63.148.72:81/',
        changeOrigin: true,
        pathRewrite: {
          '^/mdc': '/mdc'
        }
      },
      '/upload': {
        target: 'http://116.63.148.72:81/',
        changeOrigin: true,
        pathRewrite: {
          '^/upload': '/upload'
        }
      }
    },
    // Various Dev Server settings
src/container/home/index.vue
@@ -206,15 +206,12 @@
                    this.showSub = true
                }
                this.activeId = item.label || this.activeId
                // if(item.pathName) {
                //     this.$router.push({name: item.pathName,params: item.params,query: item.query})
                // }
            } else if (item.pathName && item.children && item.children.length === 0) {
            } else if (item.pathName && item.children && item.children.length === 0) { //父菜单
                this.activeId = item.label || this.activeId
                this.$router.push({name: item.pathName,params: item.params,query: item.query})
            } else if(item.pathName){ //二级菜单
                this.$router.push({name: item.pathName,params: item.params,query: item.query})
            } else if(item.href) {
            } else if(item.href) {// 打开新页
                window.open(item.href)
            }
        },
src/styles/index.scss
@@ -114,4 +114,7 @@
}
.el-form-item {
  margin-bottom: 22px;
}
.el-form-item__label {
  font-size: 12px;
}